From ff4788b4cf8ec592dbeb5db3270061c0af76da90 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 5 Feb 2013 09:28:07 +1100 Subject: Add allocation of extended styles. --- src/Editor.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/Editor.cxx') diff --git a/src/Editor.cxx b/src/Editor.cxx index f150aa202..7d449663e 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -6824,6 +6824,8 @@ void Editor::SetDocPointer(Document *document) { braces[0] = invalidPosition; braces[1] = invalidPosition; + vs.ReleaseAllExtendedStyles(); + // Reset the contraction state to fully shown. cs.Clear(); cs.InsertLines(0, pdoc->LinesTotal() - 1); @@ -9161,6 +9163,13 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_ANNOTATIONGETSTYLEOFFSET: return vs.annotationStyleOffset; + case SCI_RELEASEALLEXTENDEDSTYLES: + vs.ReleaseAllExtendedStyles(); + break; + + case SCI_ALLOCATEEXTENDEDSTYLES: + return vs.AllocateExtendedStyles(wParam); + case SCI_ADDUNDOACTION: pdoc->AddUndoAction(wParam, lParam & UNDO_MAY_COALESCE); break; -- cgit v1.2.3