aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--doc/ScintillaHistory.html4
-rw-r--r--src/Document.cxx2
2 files changed, 5 insertions, 1 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html
index 19a9f94c5..758f1d839 100644
--- a/doc/ScintillaHistory.html
+++ b/doc/ScintillaHistory.html
@@ -582,6 +582,10 @@
Markdown lexer fixes highlighting of non-ASCII characters in links.
</li>
<li>
+ SCI_MARKERADD returns -1 for invalid lines as documented instead of 0.
+ <a href="https://sourceforge.net/p/scintilla/bugs/2051/">Bug #2051</a>.
+ </li>
+ <li>
SciTE on Win32 drops menukey feature, makes Del key work again in find and replace strips
and disables F5 while command running.
<a href="https://sourceforge.net/p/scintilla/bugs/2044/">Bug #2044</a>.
diff --git a/src/Document.cxx b/src/Document.cxx
index 0567c7a04..b5f1091c8 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -322,7 +322,7 @@ int Document::AddMark(Sci::Line line, int markerNum) {
NotifyModified(mh);
return prev;
} else {
- return 0;
+ return -1;
}
}