summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-11-08 19:49:08 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-11-08 19:51:10 +0100
commitc16b1a515e9261f958fe9d151b175c74f6adaf4a (patch)
tree98fbdebd592eeda0621f7fa81b6ad2da063dd034 /Kernel
parentc3c905aa6c36d63b55736d361ebecb857ecfd605 (diff)
downloadserenity-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')
0 files changed, 0 insertions, 0 deletions