aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-08-16 12:55:58 +0000
committernyamatongwe <devnull@localhost>2000-08-16 12:55:58 +0000
commit46a5a58aed719e6a924978e777ac7f4fc52135e7 (patch)
treecd622b4abbd40ec758d4aa320dda9b2cec20c799 /src/Editor.h
parent6a3a6fb8c005995a26302cfbaa8a87896cb3b3f1 (diff)
downloadscintilla-mirror-46a5a58aed719e6a924978e777ac7f4fc52135e7.tar.gz
Invisible text.
Fixes to ensure long lines do not overflow buffers.
Diffstat (limited to 'src/Editor.h')
-rw-r--r--src/Editor.h9
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();