From 348977bf8c8f3336732ca93d646ef92bbc6a27b5 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 2 Aug 2009 07:12:04 +0000 Subject: Minimum value used for priority wrap line is 0 rather than -1 as -1 indicates not a priority wrap. Reversion of 1.273. --- src/Editor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index caeb9dfdf..26341fefb 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1306,7 +1306,7 @@ bool Editor::WrapOneLine(Surface *surface, int lineToWrap) { // Check if wrapping needed and perform any needed wrapping. // fullwrap: if true, all lines which need wrapping will be done, // in this single call. -// priorityWrapLineStart: If greater than zero, all lines starting from +// priorityWrapLineStart: If greater than or equal to zero, all lines starting from // here to 1 page + 100 lines past will be wrapped (even if there are // more lines under wrapping process in idle). // If it is neither fullwrap, nor priorityWrap, then 1 page + 100 lines will be @@ -3203,7 +3203,7 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) { // lines first). int startLineToWrap = cs.DocFromDisplay(topLine) - 5; if (startLineToWrap < 0) - startLineToWrap = -1; + startLineToWrap = 0; if (WrapLines(false, startLineToWrap)) { // The wrapping process has changed the height of some lines so // abandon this paint for a complete repaint. -- cgit v1.2.3