aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/CellBuffer.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx
index d404e6463..85bf43552 100644
--- a/src/CellBuffer.cxx
+++ b/src/CellBuffer.cxx
@@ -729,6 +729,7 @@ int CellBuffer::LineFromHandle(int markerHandle) {
void CellBuffer::InsertLine(int line, int position) {
lv.InsertLine(line, position);
if (lineStates.Length()) {
+ lineStates.EnsureLength(line);
lineStates.Insert(line, 0);
}
}