diff options
author | Neil <nyamatongwe@gmail.com> | 2022-08-17 19:04:03 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2022-08-17 19:04:03 +1000 |
commit | 9792c2cf264219a6b78a16634f5404c8ed5131c3 (patch) | |
tree | 3b72eeef987998d1e984cf2c6498d0d2bb4a797d | |
parent | f8236d657fd29f392c3474e96d43a2c73ea216e8 (diff) | |
download | scintilla-mirror-9792c2cf264219a6b78a16634f5404c8ed5131c3.tar.gz |
Display bar marker correctly on last line of document.
-rw-r--r-- | src/Document.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index 1c3015c92..5e2613bdf 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -341,7 +341,7 @@ void Document::TentativeUndo() { int Document::GetMark(Sci::Line line, bool includeChangeHistory) const { int marksHistory = 0; - if (includeChangeHistory) { + if (includeChangeHistory && (line < LinesTotal())) { int marksEdition = 0; const Sci::Position start = LineStart(line); |