summaryrefslogtreecommitdiffstats
path: root/scintilla/src/CellBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'scintilla/src/CellBuffer.h')
-rw-r--r--scintilla/src/CellBuffer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/scintilla/src/CellBuffer.h b/scintilla/src/CellBuffer.h
index 29743af..86b94cb 100644
--- a/scintilla/src/CellBuffer.h
+++ b/scintilla/src/CellBuffer.h
@@ -98,6 +98,9 @@ class UndoHistory {
void EnsureUndoRoom();
+ // Private so UndoHistory objects can not be copied
+ UndoHistory(const UndoHistory &);
+
public:
UndoHistory();
~UndoHistory();
@@ -136,12 +139,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 +168,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;