diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-08-09 14:56:22 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-08-09 14:56:22 +0200 |
commit | 820680b9ff1de8699156c7b060f97e5c0b87ad15 (patch) | |
tree | 5e28168a326ed4406a57fa9db958c3232375e104 /src/evalfunc.c | |
parent | 2514315fc2530170ad7681e45e2b6d1f0680c9eb (diff) | |
download | vim-git-820680b9ff1de8699156c7b060f97e5c0b87ad15.tar.gz |
patch 8.1.1832: win_execute() does not work in other tabv8.1.1832
Problem: Win_execute() does not work in other tab. (Rick Howe)
Solution: Take care of the tab. (closes #4792)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index ab8efe92e..07a6768c2 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -5726,14 +5726,14 @@ f_getwininfo(typval_T *argvars, typval_T *rettv) f_win_execute(typval_T *argvars, typval_T *rettv) { int id = (int)tv_get_number(argvars); - win_T *wp = win_id2wp(id); + tabpage_T *tp; + win_T *wp = win_id2wp_tp(id, &tp); win_T *save_curwin; tabpage_T *save_curtab; - if (wp != NULL) + if (wp != NULL && tp != NULL) { - if (switch_win_noblock(&save_curwin, &save_curtab, wp, curtab, TRUE) - == OK) + if (switch_win_noblock(&save_curwin, &save_curtab, wp, tp, TRUE) == OK) { check_cursor(); execute_common(argvars, rettv, 1); |