diff options
| author | Neil <nyamatongwe@gmail.com> | 2019-03-05 11:26:12 +1100 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2019-03-05 11:26:12 +1100 | 
| commit | b1cb174973ade513f60b90ed115d3650d0981394 (patch) | |
| tree | a4f94dbf35487b508faffb43e4c15800a5313d78 /src/Editor.h | |
| parent | 289b1f2147963852c745a7df02c543849c0553d8 (diff) | |
| download | scintilla-mirror-b1cb174973ade513f60b90ed115d3650d0981394.tar.gz | |
Avoid hangs in idle styling modes caused by high-priority idle work styling.
Diffstat (limited to 'src/Editor.h')
| -rw-r--r-- | src/Editor.h | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/src/Editor.h b/src/Editor.h index 9d0783f09..eb921541f 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); +	constexpr 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); | 
