aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ring.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ring.h')
-rw-r--r--src/ring.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ring.h b/src/ring.h
index 3b60833..8dc0422 100644
--- a/src/ring.h
+++ b/src/ring.h
@@ -253,7 +253,11 @@ void current_doc_undo_edit(void);
static inline bool
current_doc_must_undo(void)
{
- return ring.current ||
+ /*
+ * If there's no currently edited Q-Register
+ * we must be editing the current buffer
+ */
+ return !QRegisters::current ||
QRegisters::current->must_undo;
}