diff options
author | nyamatongwe <devnull@localhost> | 2013-02-05 09:28:07 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-02-05 09:28:07 +1100 |
commit | 9162c73355b47219d24ddba152fe931fdfabbcfc (patch) | |
tree | 40f963ff3a3e36ee8f3a4fdeb679a8c9881f8db8 /src/Editor.cxx | |
parent | 4d129be11ee453b135d16c78dfdff8d176b3cd7f (diff) | |
download | scintilla-mirror-9162c73355b47219d24ddba152fe931fdfabbcfc.tar.gz |
Add allocation of extended styles.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
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; |