From af3eb2c4975ab25036525048a42f9a3cbdd83290 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 6 Sep 2010 16:10:35 +1000 Subject: More accurate range for LineState modification notification so doesn't hit the start of document. --- src/Document.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(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; -- cgit v1.2.3