From 0b6e7242716a538874d39d2e05d02182d456de88 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 7 Jul 2010 03:23:11 +0000 Subject: Redraw when annotations change. DeleteAllMarks will only cause a modification notification when a mark was actually deleted. --- src/Editor.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Editor.cxx') diff --git a/src/Editor.cxx b/src/Editor.cxx index 9761c10c9..ecac75118 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4354,6 +4354,7 @@ void Editor::NotifyModified(Document *, DocModification mh, void *) { int lineDoc = pdoc->LineFromPosition(mh.position); if (vs.annotationVisible) { cs.SetHeight(lineDoc, cs.GetHeight(lineDoc) + mh.annotationLinesAdded); + Redraw(); } } CheckModificationForWrap(mh); @@ -6374,6 +6375,7 @@ void Editor::SetAnnotationVisible(int visible) { } } } + Redraw(); } } -- cgit v1.2.3