aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/language.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-04-27 06:32:25 +0800
committerGitHub <noreply@github.com>2024-04-27 06:32:25 +0800
commit435dee74bb3593b778328138dac054f26e2d7396 (patch)
tree910bc6fc525253fa2b4d5e777f839c60e4219170 /runtime/lua/vim/treesitter/language.lua
parent694756252b057ceb72b86f3418f3e4cb227a17ba (diff)
downloadrneovim-435dee74bb3593b778328138dac054f26e2d7396.tar.gz
rneovim-435dee74bb3593b778328138dac054f26e2d7396.tar.bz2
rneovim-435dee74bb3593b778328138dac054f26e2d7396.zip
vim-patch:9.1.0374: wrong botline in BufEnter (#28530)
Problem: When :edit an existing buffer, line('w$') may return a wrong result. Solution: Reset w_valid in curwin_init() (Jaehwang Jung) `do_ecmd()` reinitializes the current window (`curwin_init()`) whose `w_valid` field may have `VALID_BOTLINE` set. Resetting `w_botline` without marking it as invalid makes subsequent `validate_botline()` calls a no-op, thus resulting in wrong `line('w$')` value. closes: vim/vim#14642 https://github.com/vim/vim/commit/eb80b8304efb6dfeaa8d01dd41fe281df4894240 Co-authored-by: Jaehwang Jung <tomtomjhj@gmail.com>
Diffstat (limited to 'runtime/lua/vim/treesitter/language.lua')
0 files changed, 0 insertions, 0 deletions