aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-09-06 16:10:35 +1000
committernyamatongwe <devnull@localhost>2010-09-06 16:10:35 +1000
commitaf3eb2c4975ab25036525048a42f9a3cbdd83290 (patch)
treef4a37f9e6c5fe3d334d49d18de892855292e3532 /src/Document.cxx
parentfb48043b783cb07177491c78b3962cda9fc97b0a (diff)
downloadscintilla-mirror-af3eb2c4975ab25036525048a42f9a3cbdd83290.tar.gz
More accurate range for LineState modification notification so doesn't hit the start of document.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r--src/Document.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index bf49cef2f..f9627f066 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -1544,7 +1544,7 @@ void Document::LexerChanged() {
int SCI_METHOD Document::SetLineState(int line, int state) {
int statePrevious = static_cast<LineState *>(perLineData[ldState])->SetLineState(line, state);
if (state != statePrevious) {
- DocModification mh(SC_MOD_CHANGELINESTATE, 0, 0, 0, 0, line);
+ DocModification mh(SC_MOD_CHANGELINESTATE, LineStart(line), 0, 0, 0, line);
NotifyModified(mh);
}
return statePrevious;