aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2007-11-23 02:12:52 +0000
committernyamatongwe <unknown>2007-11-23 02:12:52 +0000
commita72ff058168403b9145beeb4e3e322a47f07895c (patch)
tree5261e14cdb4e6190cd95e554bd832eb977f6bff9
parentfceac9c22389053b61ed608eb4994402979f5972 (diff)
downloadscintilla-mirror-a72ff058168403b9145beeb4e3e322a47f07895c.tar.gz
Fixed crash when using line state, the final line has not been given a line
state and is deleted.
-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);
}
}