aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/iter.lua
diff options
context:
space:
mode:
authorluukvbaal <luukvbaal@gmail.com>2025-01-29 12:07:27 +0100
committerGitHub <noreply@github.com>2025-01-29 12:07:27 +0100
commit216ec739721494fb31111f19b1dee356a0d88ba1 (patch)
tree8a9f1cb65b7e1d2f7fb1a950264c38a0fea5ba81 /runtime/lua/vim/iter.lua
parente7ebc5c13d2d1658005a7fb477bc92718044746f (diff)
downloadrneovim-216ec739721494fb31111f19b1dee356a0d88ba1.tar.gz
rneovim-216ec739721494fb31111f19b1dee356a0d88ba1.tar.bz2
rneovim-216ec739721494fb31111f19b1dee356a0d88ba1.zip
fix(ui): avoid redundant ext_cmdline events (#32237)
Problem: `cmdline_show` is emitted unnecessarily each event loop iteration, because `cmdline_was_last_drawn` is never set. Solution: Keep track of whether the cmdline was last drawn to avoid unnecessarily emitting cmdline_show. Set `redraw_state` to emit `cmdline_pos` when emitting `CursorMovedC`. Only emit `cmdline_pos` when cmdline was last drawn.
Diffstat (limited to 'runtime/lua/vim/iter.lua')
0 files changed, 0 insertions, 0 deletions