summaryrefslogtreecommitdiffstats
path: root/scintilla/src/PerLine.cxx
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2011-09-25 10:14:59 +0000
committerXhmikosR <xhmikosr@users.sourceforge.net>2011-09-25 10:14:59 +0000
commitc161c121425a63c0f7ef1092d1a22dfdfb3926be (patch)
tree5395c1785ddfd4b008ac2e638ce0e5f3806f01f9 /scintilla/src/PerLine.cxx
parent9d9ff1e3c29564e4c0893cedf9364cc20381c3b8 (diff)
downloadnotepad2-mod-c161c121425a63c0f7ef1092d1a22dfdfb3926be.zip
notepad2-mod-c161c121425a63c0f7ef1092d1a22dfdfb3926be.tar.gz
notepad2-mod-c161c121425a63c0f7ef1092d1a22dfdfb3926be.tar.bz2
update Scintilla
git-svn-id: https://notepad2-mod.googlecode.com/svn/trunk@576 28bd50df-7adb-d945-0439-6e466c6a13cc
Diffstat (limited to 'scintilla/src/PerLine.cxx')
-rw-r--r--scintilla/src/PerLine.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/scintilla/src/PerLine.cxx b/scintilla/src/PerLine.cxx
index c7e5c99..795f628 100644
--- a/scintilla/src/PerLine.cxx
+++ b/scintilla/src/PerLine.cxx
@@ -182,6 +182,17 @@ int LineMarkers::MarkValue(int line) {
return 0;
}
+int LineMarkers::MarkerNext(int lineStart, int mask) const {
+ int length = markers.Length();
+ for (int iLine = lineStart; iLine < length; iLine++) {
+ MarkerHandleSet *onLine = markers[iLine];
+ if (onLine && ((onLine->MarkValue() & mask) != 0))
+ //if ((pdoc->GetMark(iLine) & lParam) != 0)
+ return iLine;
+ }
+ return -1;
+}
+
int LineMarkers::AddMark(int line, int markerNum, int lines) {
handleCurrent++;
if (!markers.Length()) {