aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ring.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-20 01:29:47 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-20 01:29:47 +0100
commit4282e7d6b2f2cd73e93bf478a4aae4ce92481808 (patch)
tree87ab1d9cb0d8601e61e576dd4d5c39cf59854a78 /src/ring.cpp
parentd4f8fb3efcb60cc2cd39ecb7ca65706db4c7b6ad (diff)
downloadsciteco-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.cpp')
-rw-r--r--src/ring.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ring.cpp b/src/ring.cpp
index 492845f..1c7087e 100644
--- a/src/ring.cpp
+++ b/src/ring.cpp
@@ -201,7 +201,7 @@ Ring::find(tecoInt id)
void
Ring::dirtify(void)
{
- if (!current || current->dirty)
+ if (QRegisters::current || current->dirty)
return;
interface.undo_info_update(current);
@@ -746,9 +746,9 @@ StateSaveFile::done(const gchar *str)
void
current_doc_undo_edit(void)
{
- if (ring.current)
+ if (!QRegisters::current)
ring.undo_edit();
- else if (QRegisters::current)
+ else
undo.push_var(QRegisters::current)->undo_edit();
}