diff options
author | VVKot <volodymyr.kot.ua@gmail.com> | 2021-12-19 07:46:28 +0000 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-03-13 13:17:28 +0800 |
commit | 6c26ab71ceb9f4f12c55492ba7ab33a5e61af079 (patch) | |
tree | f1d832e84322b54cc8c4ad12a170826e7ff3377f /src/nvim/eval.c | |
parent | 91ac0088e1a8bdf189bf96066eb8e0d8e632ceac (diff) | |
download | rneovim-6c26ab71ceb9f4f12c55492ba7ab33a5e61af079.tar.gz rneovim-6c26ab71ceb9f4f12c55492ba7ab33a5e61af079.tar.bz2 rneovim-6c26ab71ceb9f4f12c55492ba7ab33a5e61af079.zip |
vim-patch:8.1.0892: failure when closing a window when location list is in use
Problem: Failure when closing a window when location list is in use.
Solution: Handle the situation gracefully. Make sure memory for 'switchbuf'
is not freed at the wrong time. (Yegappan Lakshmanan,
closes vim/vim#3928)
https://github.com/vim/vim/commit/eeb1b9c7ed33c152e041a286d79bf3ed00d80e40
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 83223cdd5c..18b9039d60 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -6436,7 +6436,7 @@ win_T *find_win_by_nr_or_id(typval_T *vp) int nr = (int)tv_get_number_chk(vp, NULL); if (nr >= LOWEST_WIN_ID) { - return win_id2wp(vp); + return win_id2wp(tv_get_number(vp)); } return find_win_by_nr(vp, NULL); |