diff options
author | nyamatongwe <unknown> | 2001-08-14 02:46:20 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-08-14 02:46:20 +0000 |
commit | c391d3603037d9866295e5d797b3fd6a89b39527 (patch) | |
tree | 8d2dbf841b0e28ddd02a9ec7cf2bdd53f1520a0b /src/CellBuffer.cxx | |
parent | 66f1947884ee7dd16f9c3d6a3a015b87facc79fb (diff) | |
download | scintilla-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/CellBuffer.cxx')
-rw-r--r-- | src/CellBuffer.cxx | 2 |
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; } |