aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ring.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ring.h')
-rw-r--r--src/ring.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ring.h b/src/ring.h
index 77843fe..608b752 100644
--- a/src/ring.h
+++ b/src/ring.h
@@ -208,8 +208,8 @@ public:
undo_edit(void)
{
current->dot = interface.ssm(SCI_GETCURRENTPOS);
- undo.push_var(current);
- current->undo_edit();
+ undo.push_var(QRegisters::current);
+ undo.push_var(current)->undo_edit();
}
bool save(const gchar *filename);