diff options
| author | Yi Ming <ofseed@foxmail.com> | 2026-04-26 00:11:09 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-25 12:11:09 -0400 |
| commit | 775c7d1b538275ccb560c4cdd806ef1db322164d (patch) | |
| tree | a76009215a4c350b10a5e5c4acb0964f1370d13b /runtime/lua/vim/ui.lua | |
| parent | eeee4bd4fc4117c994011d087b46e6e5f9a74379 (diff) | |
| download | rneovim-775c7d1b538275ccb560c4cdd806ef1db322164d.tar.gz rneovim-775c7d1b538275ccb560c4cdd806ef1db322164d.tar.bz2 rneovim-775c7d1b538275ccb560c4cdd806ef1db322164d.zip | |
fix(lsp): check window is still valid after async request #39396
Problem:
Since `foldclose` is async, it must wait for the request to return before actually executing, at which point the original window may no longer be valid.
Solution:
Check whether the window is valid before actually performing `foldclose`.
Diffstat (limited to 'runtime/lua/vim/ui.lua')
0 files changed, 0 insertions, 0 deletions