diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-11-07 16:58:59 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-11-07 16:58:59 +0100 |
commit | cbcd9cbd77acc8cc97c0d44683d96c01d3dd0fa7 (patch) | |
tree | 0327591c6c155fec6e557463815968f90bab3e0a /src/structs.h | |
parent | 46f479c756c0255e3b6d473590c1857678eff5c6 (diff) | |
download | vim-git-cbcd9cbd77acc8cc97c0d44683d96c01d3dd0fa7.tar.gz |
patch 8.2.1966: popup becomes current window after closing a terminal windowv8.2.1966
Problem: Popup becomes current window after closing a terminal window.
Solution: When restoring the window after executing autocommands, check that
the window ID is still the same. (Naruhiko Nishino,
closes #7272)
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/structs.h b/src/structs.h index 330bb53fa..90e76203a 100644 --- a/src/structs.h +++ b/src/structs.h @@ -3889,13 +3889,13 @@ typedef int vimmenu_T; */ typedef struct { - buf_T *save_curbuf; // saved curbuf - int use_aucmd_win; // using aucmd_win - win_T *save_curwin; // saved curwin - win_T *new_curwin; // new curwin - win_T *save_prevwin; // saved prevwin - bufref_T new_curbuf; // new curbuf - char_u *globaldir; // saved value of globaldir + buf_T *save_curbuf; // saved curbuf + int use_aucmd_win; // using aucmd_win + int save_curwin_id; // ID of saved curwin + int new_curwin_id; // ID of new curwin + int save_prevwin_id; // ID of saved prevwin + bufref_T new_curbuf; // new curbuf + char_u *globaldir; // saved value of globaldir } aco_save_T; /* |