diff options
author | nyamatongwe <unknown> | 2009-04-04 23:00:39 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-04-04 23:00:39 +0000 |
commit | 89db940cd0d6f3a2da913bc0098c777c5c7c50ee (patch) | |
tree | 333fb21b39eee1201632805511bdc539ea23f9dc /src/Editor.cxx | |
parent | 977371ca0595af895bf255b135292e12f80eff01 (diff) | |
download | scintilla-mirror-89db940cd0d6f3a2da913bc0098c777c5c7c50ee.tar.gz |
Added AddUndoAction call for adding application actions into undo stack.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 7ba26bb53..5d709fe06 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3961,6 +3961,7 @@ void Editor::NotifyModified(Document*, DocModification mh, void *) { scn.line = mh.line; scn.foldLevelNow = mh.foldLevelNow; scn.foldLevelPrev = mh.foldLevelPrev; + scn.token = mh.token; NotifyParent(scn); } } @@ -7635,6 +7636,10 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_GETEXTRADESCENT: return vs.extraDescent; + case SCI_ADDUNDOACTION: + pdoc->AddUndoAction(wParam); + break; + default: return DefWndProc(iMessage, wParam, lParam); } |