summaryrefslogtreecommitdiffstats
path: root/scintilla/src/PerLine.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'scintilla/src/PerLine.cxx')
-rw-r--r--scintilla/src/PerLine.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/scintilla/src/PerLine.cxx b/scintilla/src/PerLine.cxx
index 795f628..6717b17 100644
--- a/scintilla/src/PerLine.cxx
+++ b/scintilla/src/PerLine.cxx
@@ -183,6 +183,8 @@ int LineMarkers::MarkValue(int line) {
}
int LineMarkers::MarkerNext(int lineStart, int mask) const {
+ if (lineStart < 0)
+ lineStart = 0;
int length = markers.Length();
for (int iLine = lineStart; iLine < length; iLine++) {
MarkerHandleSet *onLine = markers[iLine];