diff options
author | nyamatongwe <unknown> | 2000-08-16 12:55:58 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-08-16 12:55:58 +0000 |
commit | 3573aa38b55d48abb0c3a0632894a51dedd460ff (patch) | |
tree | cd622b4abbd40ec758d4aa320dda9b2cec20c799 /src/Editor.h | |
parent | 01ee5832076b4be7fcbbb0bf5bdcc4f1f534698b (diff) | |
download | scintilla-mirror-3573aa38b55d48abb0c3a0632894a51dedd460ff.tar.gz |
Invisible text.
Fixes to ensure long lines do not overflow buffers.
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Editor.h b/src/Editor.h index e34d38707..5b79f2ede 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -36,10 +36,10 @@ public: int selStart; int selEnd; int edgeColumn; - char chars[maxLineLength]; - char styles[maxLineLength]; - char indicators[maxLineLength]; - int positions[maxLineLength]; + char chars[maxLineLength+1]; + char styles[maxLineLength+1]; + char indicators[maxLineLength+1]; + int positions[maxLineLength+1]; }; class Editor : public DocWatcher { @@ -178,6 +178,7 @@ protected: // ScintillaBase subclass needs access to much of Editor void SetSelection(int currentPos_, int anchor_); void SetSelection(int currentPos_); void SetEmptySelection(int currentPos_); + int MovePositionOutsideChar(int pos, int moveDir, bool checkLineEnd=true); int MovePositionTo(int newPos, bool extend = false); int MovePositionSoVisible(int pos, int moveDir); void SetLastXChosen(); |