aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Document.cxx')
-rw-r--r--src/Document.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index 6e8d2cc44..400769635 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -1320,15 +1320,14 @@ bool Document::SetStyles(int length, char *styles) {
}
}
-bool Document::EnsureStyledTo(int pos) {
- if (pos > GetEndStyled()) {
+void Document::EnsureStyledTo(int pos) {
+ if ((enteredCount == 0) && (pos > GetEndStyled())) {
IncrementStyleClock();
// Ask the watchers to style, and stop as soon as one responds.
for (int i = 0; pos > GetEndStyled() && i < lenWatchers; i++) {
watchers[i].watcher->NotifyStyleNeeded(this, watchers[i].userData, pos);
}
}
- return pos <= GetEndStyled();
}
void Document::IncrementStyleClock() {