From f424af8c571b9d3fb96503123d1375fb037af098 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 20 Dec 2001 07:28:44 +0000 Subject: Increased allocations for laying out and wrapping lines to allow 16000 characters and 400 lines. Optimised display by reusing a LineLayout for all the visible lines of a document line. Fixed some processing of multi-byte and UTF-8 characters so that, for example, performing a rectangular selection does not select partial characters. --- src/Editor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Editor.h') diff --git a/src/Editor.h b/src/Editor.h index 8d60abffc..374e2b33f 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -36,7 +36,7 @@ public: class LineLayout { public: /// Drawing is only performed for @a maxLineLength characters on each line. - enum {maxLineLength = 4000}; + enum {maxLineLength = 16000}; int numCharsInLine; int xHighlightGuide; bool highlightColumn; @@ -52,7 +52,7 @@ public: // Wrapped line support int widthLine; int lines; - enum {maxDisplayLines = 100}; + enum {maxDisplayLines = 400}; int lineStarts[maxDisplayLines]; }; -- cgit v1.2.3