From 1525b912fb36d6d160dd1d3b3d2f8adb20d61d95 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 17 Oct 2018 09:04:33 +1100 Subject: Bug [#2051]. Correct return value from SCI_MARKERADD for invalid lines. --- doc/ScintillaHistory.html | 4 ++++ src/Document.cxx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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.
  • + SCI_MARKERADD returns -1 for invalid lines as documented instead of 0. + Bug #2051. +
  • +
  • SciTE on Win32 drops menukey feature, makes Del key work again in find and replace strips and disables F5 while command running. Bug #2044. 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; } } -- cgit v1.2.3