diff options
Diffstat (limited to 'src/CellBuffer.h')
-rw-r--r-- | src/CellBuffer.h | 5 |
1 files changed, 5 insertions, 0 deletions
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<char> substance; SplitVector<char> 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; |