aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-08-14 02:46:20 +0000
committernyamatongwe <unknown>2001-08-14 02:46:20 +0000
commitc391d3603037d9866295e5d797b3fd6a89b39527 (patch)
tree8d2dbf841b0e28ddd02a9ec7cf2bdd53f1520a0b /src
parent66f1947884ee7dd16f9c3d6a3a015b87facc79fb (diff)
downloadscintilla-mirror-c391d3603037d9866295e5d797b3fd6a89b39527.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.
Diffstat (limited to 'src')
-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;
}