aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2012-06-16 10:17:27 +1000
committernyamatongwe <devnull@localhost>2012-06-16 10:17:27 +1000
commitdb0887edb399b13ad0b5f18b88eac52a18acb26a (patch)
treedf18022117735462e28f41ea3a2bf74198832c19 /src
parent1180a4dfd948d7c891f1a4289041344b449452bb (diff)
downloadscintilla-mirror-db0887edb399b13ad0b5f18b88eac52a18acb26a.tar.gz
Redraw margin when changing margin styles.
Diffstat (limited to 'src')
-rw-r--r--src/Document.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index d43022f84..88e45638b 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -1757,10 +1757,12 @@ void Document::MarginSetText(int line, const char *text) {
void Document::MarginSetStyle(int line, int style) {
static_cast<LineAnnotation *>(perLineData[ldMargin])->SetStyle(line, style);
+ NotifyModified(DocModification(SC_MOD_CHANGEMARGIN, LineStart(line), 0, 0, 0, line));
}
void Document::MarginSetStyles(int line, const unsigned char *styles) {
static_cast<LineAnnotation *>(perLineData[ldMargin])->SetStyles(line, styles);
+ NotifyModified(DocModification(SC_MOD_CHANGEMARGIN, LineStart(line), 0, 0, 0, line));
}
int Document::MarginLength(int line) const {