diff options
| author | Neil <nyamatongwe@gmail.com> | 2018-10-17 09:04:33 +1100 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2018-10-17 09:04:33 +1100 | 
| commit | 1525b912fb36d6d160dd1d3b3d2f8adb20d61d95 (patch) | |
| tree | d1bb1a92ce5670222e207d8341f5c55213d9e0e6 | |
| parent | 3d88daf1a73864e22d9bb0b548bcc894ab2f09c3 (diff) | |
| download | scintilla-mirror-1525b912fb36d6d160dd1d3b3d2f8adb20d61d95.tar.gz | |
Bug [#2051]. Correct return value from SCI_MARKERADD for invalid lines.
| -rw-r--r-- | doc/ScintillaHistory.html | 4 | ||||
| -rw-r--r-- | src/Document.cxx | 2 | 
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;  	}  } | 
