diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-21 04:52:46 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-21 04:52:46 +0100 |
commit | 79fe6c5ed6af14cd6dc50e98d48a9650750d26db (patch) | |
tree | 587b1045b195f1f52849c6adc8ba8f86d7f878ea | |
parent | fddab16ebc89386e4311e195361e611a2eee4b96 (diff) | |
download | sciteco-79fe6c5ed6af14cd6dc50e98d48a9650750d26db.tar.gz |
fixed QRegister::set_string() for macro-local Q-Registers
it is assumed that the undo() function saves the current document's DOT
-rw-r--r-- | qbuffers.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qbuffers.cpp b/qbuffers.cpp index 26034f2..64a5fbd 100644 --- a/qbuffers.cpp +++ b/qbuffers.cpp @@ -94,10 +94,12 @@ QRegisterData::set_string(const gchar *str) void QRegisterData::undo_set_string(void) { + /* set_string() assumes that dot has been saved */ + current_save_dot(); + if (!must_undo) return; - current_save_dot(); if (ring.current) ring.current->undo_edit(); else if (QRegisters::current) |