From 38a0d10fa649f7da2c6a62659dfc039f900b3e0c Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 14 Aug 2001 02:46:20 +0000 Subject: 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. --- src/CellBuffer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3