aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Editor.h')
-rw-r--r--src/Editor.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Editor.h b/src/Editor.h
index 417700ed5..37df93c93 100644
--- a/src/Editor.h
+++ b/src/Editor.h
@@ -188,6 +188,10 @@ protected: // ScintillaBase subclass needs access to much of Editor
Window wMain; ///< The Scintilla parent window
Window wMargin; ///< May be separate when using a scroll view for wMain
+ // Optimization that avoids superfluous invalidations
+ bool redrawPendingText = false;
+ bool redrawPendingMargin = false;
+
/** Style resources may be expensive to allocate so are cached between uses.
* When a style attribute is changed, this cache is flushed. */
bool stylesValid;