aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-09-06 16:10:35 +1000
committernyamatongwe <unknown>2010-09-06 16:10:35 +1000
commitfe9860e959fc660a5dd5a2cee2057fca5d81a379 (patch)
treed363f8cf5f723fd96d6b83f842d13933bc81d9b0 /src/Document.cxx
parentc2c0e752e0ceffad06d51a472838d18eedc6ed4f (diff)
downloadscintilla-mirror-fe9860e959fc660a5dd5a2cee2057fca5d81a379.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;