From 4282e7d6b2f2cd73e93bf478a4aae4ce92481808 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 20 Nov 2014 01:29:47 +0100 Subject: allow a current buffer if we're editing a Q-Register this eases handling of the "*" register --- src/ring.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/ring.h') 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; } -- cgit v1.2.3