From de3ed8db8b49638bd140830f6894a880fad8ef1b Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 8 Feb 2013 22:11:56 +0100 Subject: fixed ring.current/QRegisters::current corruption occurs when rubbing out a switch from q-reg string or to q-reg string --- src/ring.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ring.h') 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); -- cgit v1.2.3