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/CellBuffer.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/CellBuffer.h') diff --git a/src/CellBuffer.h b/src/CellBuffer.h index 388b9027b..bfbb121de 100644 --- a/src/CellBuffer.h +++ b/src/CellBuffer.h @@ -136,12 +136,15 @@ private: SplitVector substance; SplitVector style; bool readOnly; + int utf8LineEnds; bool collectingUndo; UndoHistory uh; LineVector lv; + bool UTF8LineEndOverlaps(int position) const; + void ResetLineEnds(); /// Actions without undo void BasicInsertString(int position, const char *s, int insertLength); void BasicDeleteChars(int position, int deleteLength); @@ -162,6 +165,8 @@ public: int Length() const; void Allocate(int newSize); + int GetLineEndTypes() const { return utf8LineEnds; } + void SetLineEndTypes(int utf8LineEnds_); void SetPerLine(PerLine *pl); int Lines() const; int LineStart(int line) const; -- cgit v1.2.3