diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-11-08 19:49:08 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-11-08 19:51:10 +0100 |
commit | c16b1a515e9261f958fe9d151b175c74f6adaf4a (patch) | |
tree | 98fbdebd592eeda0621f7fa81b6ad2da063dd034 /Kernel/VM/MemoryManager.h | |
parent | c3c905aa6c36d63b55736d361ebecb857ecfd605 (diff) | |
download | serenity-c16b1a515e9261f958fe9d151b175c74f6adaf4a.zip |
GTextEditor: Add a way to flush any pending on_change notifications
Since on_change handlers can alter the text document we're working on,
we have to make sure they've been run before we try looking at spans.
This fixes some flakiness when a paint happened before HackStudio had
a chance to re-highlight some C++ while editing it.
The design where clients of GTextEditor perform syntax highlighting in
the "arbitrary code execution" on_change callback is not very good.
We should find a way to move highlighting closer to the editor.
Diffstat (limited to 'Kernel/VM/MemoryManager.h')
0 files changed, 0 insertions, 0 deletions