diff options
author | nyamatongwe <devnull@localhost> | 2013-01-19 11:40:47 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-01-19 11:40:47 +1100 |
commit | d6ac5bf56d40512ac0634d7a5bee6f7328b7d41f (patch) | |
tree | c8a0a61379695115cde7c7423ce4308f4c195336 /src/Editor.cxx | |
parent | 46ff1fe3d148b9d131788be6b4d7da8daa65189c (diff) | |
download | scintilla-mirror-d6ac5bf56d40512ac0634d7a5bee6f7328b7d41f.tar.gz |
Support the three Unicode line ends NEL, LS, and PS in CellBuffer, Document,
Editor and the message interface.
Will only be turned on for lexers that support Unicode line ends.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index e4ae6060e..f150aa202 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -7784,6 +7784,21 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { pdoc->eolMode = wParam; break; + case SCI_SETLINEENDTYPESALLOWED: + if (pdoc->SetLineEndTypesAllowed(wParam)) { + cs.Clear(); + cs.InsertLines(0, pdoc->LinesTotal() - 1); + SetAnnotationHeights(0, pdoc->LinesTotal()); + InvalidateStyleRedraw(); + } + break; + + case SCI_GETLINEENDTYPESALLOWED: + return pdoc->GetLineEndTypesAllowed(); + + case SCI_GETLINEENDTYPESACTIVE: + return pdoc->GetLineEndTypesActive(); + case SCI_STARTSTYLING: pdoc->StartStyling(wParam, static_cast<char>(lParam)); break; @@ -8080,6 +8095,9 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_SETCODEPAGE: if (ValidCodePage(wParam)) { if (pdoc->SetDBCSCodePage(wParam)) { + cs.Clear(); + cs.InsertLines(0, pdoc->LinesTotal() - 1); + SetAnnotationHeights(0, pdoc->LinesTotal()); InvalidateStyleRedraw(); } } |