aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_help_html.lua
diff options
context:
space:
mode:
authorJaehwang Jung <tomtomjhj@gmail.com>2024-07-06 15:34:05 +0900
committerLewis Russell <me@lewisr.dev>2024-07-08 11:06:26 +0100
commit8474f529780ba20f9179ad1b60167ee9e53f8374 (patch)
tree70dbfc657ab4c2b88b7bf6167ffc021f11065bc3 /scripts/gen_help_html.lua
parentbf92d423a9ac4bd3d30685c23a0d9a0dd772b7a7 (diff)
downloadrneovim-8474f529780ba20f9179ad1b60167ee9e53f8374.tar.gz
rneovim-8474f529780ba20f9179ad1b60167ee9e53f8374.tar.bz2
rneovim-8474f529780ba20f9179ad1b60167ee9e53f8374.zip
fix(treesitter.foldexpr): robustness against ctrl-c
Problem: Exiting the insert mode with ctrl-c does not trigger InsertLeave autocmd. This may lead to nil error in treesitter foldexpr. Solution: Check nil. Folds still can be stale after exiting the insert mode with ctrl-c, but it will be eventually updated correctly. An alternative solution would be to ensure that exiting the insert mode always triggers do_foldupdate. This can be done either by "fixing" ctrl-c or with on_key callback that checks ctrl-c (nvim-cmp does this).
Diffstat (limited to 'scripts/gen_help_html.lua')
0 files changed, 0 insertions, 0 deletions