From d6ac5bf56d40512ac0634d7a5bee6f7328b7d41f Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 19 Jan 2013 11:40:47 +1100 Subject: 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. --- src/Editor.cxx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/Editor.cxx') 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(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(); } } -- cgit v1.2.3