diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-11-20 01:29:47 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-11-20 01:29:47 +0100 |
commit | 4282e7d6b2f2cd73e93bf478a4aae4ce92481808 (patch) | |
tree | 87ab1d9cb0d8601e61e576dd4d5c39cf59854a78 /src/ring.h | |
parent | d4f8fb3efcb60cc2cd39ecb7ca65706db4c7b6ad (diff) | |
download | sciteco-4282e7d6b2f2cd73e93bf478a4aae4ce92481808.tar.gz |
allow a current buffer if we're editing a Q-Register
this eases handling of the "*" register
Diffstat (limited to 'src/ring.h')
-rw-r--r-- | src/ring.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; } |