aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/python.vim
diff options
context:
space:
mode:
authorSean Dewar <6256228+seandewar@users.noreply.github.com>2025-08-19 15:03:40 +0100
committerSean Dewar <6256228+seandewar@users.noreply.github.com>2025-08-26 09:49:12 +0100
commit6a409e05071735c4b1c0272d51d8871b58384eee (patch)
tree04c6f1580c396cd546af9458c9b33b3e25de3f59 /runtime/syntax/python.vim
parente6ba78919c223bd8871825edaebfa7dc92a62bf6 (diff)
downloadrneovim-6a409e05071735c4b1c0272d51d8871b58384eee.tar.gz
rneovim-6a409e05071735c4b1c0272d51d8871b58384eee.tar.bz2
rneovim-6a409e05071735c4b1c0272d51d8871b58384eee.zip
fix(terminal): don't trigger TextChangedT for unrelated redraws
Problem: TextChangedT fires depending on whether Nvim needs to update_screen while in terminal mode. This makes little sense as redraws can be completely unrelated to the terminal. Also, TextChanged could be fired from changes in terminal mode after returning to normal mode. Solution: trigger it when b:changedtick changes, like other such events. Happens when invalid cells are refreshed, though is no longer affected by cursor changes. Don't fire TextChanged from changes in terminal mode after leaving. Unlike the other TextChanged* events, I've elected to not have it be influenced by typeahead. Plus, unlike when leaving insert mode when no TextChangedI events are defined, I don't trigger TextChanged when returning to normal mode from changes in terminal mode (is that a Vim bug?) Curiously, Vim's TextChangedT is different; it's tied to its terminal cursor redraws, which triggers pretty eagerly (but is unaffected by unrelated redraws) - usually *twice* when data is sent to the terminal (regardless of whether it causes any visible changes, like incomplete escape codes; wasn't true for Nvim). Not clear to me how this event was actually intended to work, but this seems to make the most sense to me.
Diffstat (limited to 'runtime/syntax/python.vim')
0 files changed, 0 insertions, 0 deletions