aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-08-14 02:46:20 +0000
committernyamatongwe <devnull@localhost>2001-08-14 02:46:20 +0000
commit38a0d10fa649f7da2c6a62659dfc039f900b3e0c (patch)
tree8d2dbf841b0e28ddd02a9ec7cf2bdd53f1520a0b
parentdc66da708db1dc5886548b6d5d2837b02b914fa1 (diff)
downloadscintilla-mirror-38a0d10fa649f7da2c6a62659dfc039f900b3e0c.tar.gz
When asked for the line start of a line after the end of the buffer,
returns the length of the buffer rather than double the length of the buffer.
-rw-r--r--src/CellBuffer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx
index 8bdb3d104..ecb5bc180 100644
--- a/src/CellBuffer.cxx
+++ b/src/CellBuffer.cxx
@@ -796,7 +796,7 @@ int CellBuffer::LineStart(int line) {
if (line < 0)
return 0;
else if (line > lv.lines)
- return length;
+ return Length();
else
return lv.linesData[line].startPosition;
}