diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-11-09 18:23:37 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-11-09 20:32:39 +0100 |
commit | d59ba50b600dc5560211ba236772cad1d43e5a05 (patch) | |
tree | 6b25cdeb758048a2d442cb8070167d54eba6704a /src/document.cpp | |
parent | a475ea8eacfcce8a3f0112f121400e37fffc0934 (diff) | |
download | sciteco-d59ba50b600dc5560211ba236772cad1d43e5a05.tar.gz |
fixed undoing of initial TECO document changes
* the TECODocument::undo_edit() function is called before TECODocument::edit()
and the Scintilla document might still be unitialized
* fixes e.g. undoing of Xq, ^Uq on registers whose string part
has not being used before
Diffstat (limited to 'src/document.cpp')
-rw-r--r-- | src/document.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/document.cpp b/src/document.cpp index c01bd4c..dd39a56 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -75,6 +75,9 @@ TECODocument::edit(void) void TECODocument::undo_edit(void) { + if (!is_initialized()) + doc = (SciDoc)interface.ssm(SCI_CREATEDOCUMENT); + /* * see above: set TECO-style character representations * NOTE: could be done with push_msg() but that requires |