aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2009-08-02 07:12:04 +0000
committernyamatongwe <unknown>2009-08-02 07:12:04 +0000
commit348977bf8c8f3336732ca93d646ef92bbc6a27b5 (patch)
tree2d0d70cc14cd14342072e72482e18b34f5d5c216
parentc291642134bb633d306eab4425447075369089f3 (diff)
downloadscintilla-mirror-348977bf8c8f3336732ca93d646ef92bbc6a27b5.tar.gz
Minimum value used for priority wrap line is 0 rather than -1 as -1
indicates not a priority wrap. Reversion of 1.273.
-rw-r--r--src/Editor.cxx4
1 files changed, 2 insertions, 2 deletions
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.