aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
diff options
context:
space:
mode:
authormitchell <unknown>2019-03-31 21:57:39 -0400
committermitchell <unknown>2019-03-31 21:57:39 -0400
commitaa255d832bd769d2814c5bffcce30d02ccd27208 (patch)
tree6b0d0690603c1217532c592a953b1675c6bf876c /src/Editor.h
parentb64609f6d058cf9da84b43a28b7d7610770a06a8 (diff)
downloadscintilla-mirror-aa255d832bd769d2814c5bffcce30d02ccd27208.tar.gz
Backport Avoid hangs in idle styling modes caused by high-priority idle work styling.
Backport of changeset 7315:57ea0255c8aa, but without constexpr, as non-static data members cannot be constexpr in C++11.
Diffstat (limited to 'src/Editor.h')
-rw-r--r--src/Editor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Editor.h b/src/Editor.h
index 29150276a..cbdd171cf 100644
--- a/src/Editor.h
+++ b/src/Editor.h
@@ -522,6 +522,9 @@ protected: // ScintillaBase subclass needs access to much of Editor
Sci::Position PositionAfterMaxStyling(Sci::Position posMax, bool scrolling) const;
void StartIdleStyling(bool truncatedLastStyling);
void StyleAreaBounded(PRectangle rcArea, bool scrolling);
+ bool SynchronousStylingToVisible() const noexcept {
+ return (idleStyling == SC_IDLESTYLING_NONE) || (idleStyling == SC_IDLESTYLING_AFTERVISIBLE);
+ }
void IdleStyling();
virtual void IdleWork();
virtual void QueueIdleWork(WorkNeeded::workItems items, Sci::Position upTo=0);