diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-02-10 22:59:04 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-02-10 22:59:04 +0100 |
commit | eeb1b9c7ed33c152e041a286d79bf3ed00d80e40 (patch) | |
tree | 49dacb9aef73142cd53860053bdf2e00f82ddf4f /src/evalfunc.c | |
parent | d77aa4d22e943998c337d5a603622ac5cf2928cb (diff) | |
download | vim-git-eeb1b9c7ed33c152e041a286d79bf3ed00d80e40.tar.gz |
patch 8.1.0892: failure when closing a window when location list is in usev8.1.0892
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 #3928)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index eb082b771..c18ab3125 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -5800,7 +5800,7 @@ f_getwininfo(typval_T *argvars, typval_T *rettv) if (argvars[0].v_type != VAR_UNKNOWN) { - wparg = win_id2wp(argvars); + wparg = win_id2wp(tv_get_number(&argvars[0])); if (wparg == NULL) return; } |