From 46a5a58aed719e6a924978e777ac7f4fc52135e7 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 16 Aug 2000 12:55:58 +0000 Subject: Invisible text. Fixes to ensure long lines do not overflow buffers. --- src/Editor.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/Editor.h') 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(); -- cgit v1.2.3