aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r--src/CellBuffer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx
index 6d04e04c9..d404e6463 100644
--- a/src/CellBuffer.cxx
+++ b/src/CellBuffer.cxx
@@ -735,7 +735,7 @@ void CellBuffer::InsertLine(int line, int position) {
void CellBuffer::RemoveLine(int line) {
lv.RemoveLine(line);
- if (lineStates.Length()) {
+ if (lineStates.Length() > line) {
lineStates.Delete(line);
}
}