aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2008-01-21 01:49:06 +0000
committernyamatongwe <devnull@localhost>2008-01-21 01:49:06 +0000
commitecf6099ed2c77da3d7abaa06b4cdba98559ee244 (patch)
tree5d0fdbc55e0ff897ee632486c9f7a6cdb33f2685 /src
parent4663b7ffe215ea47902a467e26f4e6b40435f58d (diff)
downloadscintilla-mirror-ecf6099ed2c77da3d7abaa06b4cdba98559ee244.tar.gz
Fixed crash when line states is allocated and line inserted after end of
line states.
Diffstat (limited to 'src')
-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);
}
}