From e3b352deb09502f232708e3fea839893d166c10b Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 4 Apr 2009 23:00:39 +0000 Subject: Added AddUndoAction call for adding application actions into undo stack. --- src/Editor.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Editor.cxx') 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); } -- cgit v1.2.3