aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ring.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ring.h')
-rw-r--r--src/ring.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ring.h b/src/ring.h
index db64882..be2689e 100644
--- a/src/ring.h
+++ b/src/ring.h
@@ -247,4 +247,11 @@ current_doc_update(void)
QRegisters::current->update_string();
}
+static inline bool
+current_doc_must_undo(void)
+{
+ return ring.current ||
+ QRegisters::current->must_undo;
+}
+
#endif