diff options
author | Guilherme Soares <48023091+guilhas07@users.noreply.github.com> | 2024-05-27 13:20:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-27 04:20:03 -0700 |
commit | c4eb0b64bd4923a72fe737837cfe234c80fb539c (patch) | |
tree | f57ab1fcae6c6632ad9587e2b8378ef5cc2ea277 /test/functional/lua/vim_spec.lua | |
parent | 104800ce2eadd21475b5a4897265a8a177e58d77 (diff) | |
download | rneovim-c4eb0b64bd4923a72fe737837cfe234c80fb539c.tar.gz rneovim-c4eb0b64bd4923a72fe737837cfe234c80fb539c.tar.bz2 rneovim-c4eb0b64bd4923a72fe737837cfe234c80fb539c.zip |
fix(treesitter): find buffer in multiple windows #28922
Problem:
1. When interacting with multiple :InspectTree and the source buffer
windows there is a high chance of errors due to the window ids not
being updated and validated.
2. Not all InspectTree windows were closed when the source buffer was
closed.
Solution:
1. Update InspectTree window id on `CursorMoved` event and validate
source buffer window id before trying to navigate to it.
2. Close all InspectTree windows
Diffstat (limited to 'test/functional/lua/vim_spec.lua')
0 files changed, 0 insertions, 0 deletions