aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_editor.lua
diff options
context:
space:
mode:
authorluukvbaal <luukvbaal@gmail.com>2025-06-02 00:12:12 +0200
committerGitHub <noreply@github.com>2025-06-01 15:12:12 -0700
commit981d4ba45ed1169b305d8b96f04062ae997ddd43 (patch)
tree25fc2393ed7cb6da24d74ebc34c1202d0b913f46 /runtime/lua/vim/_editor.lua
parent5cfbc35aa8381f3e199be248fbb94b05c16f82ff (diff)
downloadrneovim-981d4ba45ed1169b305d8b96f04062ae997ddd43.tar.gz
rneovim-981d4ba45ed1169b305d8b96f04062ae997ddd43.tar.bz2
rneovim-981d4ba45ed1169b305d8b96f04062ae997ddd43.zip
fix(eval): winnr('$') counts non-current hidden/unfocusable windows #34207
Problem: Non-visible/focusable windows are assigned a window number, whereas commands that use this window number skip over them. Solution: Skip over non-visible/focusable windows when computing the window number, unless it is made the current window through the API in which case an identifiable window number is still useful. This also ensures it matches the window number of the window entered by `<winnr>wincmd w` since 403fcacf.
Diffstat (limited to 'runtime/lua/vim/_editor.lua')
0 files changed, 0 insertions, 0 deletions