diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-19 17:09:56 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-19 17:09:56 +0100 |
commit | 8c752bd6c4af54c0b7bac35a39acc2bf16015f85 (patch) | |
tree | d3d5fed20e6d7bb27a955eb129c8cfec0fc04bcb /src/proto | |
parent | 4520d440c59034452d1450b27fcd56825c090687 (diff) | |
download | vim-git-8c752bd6c4af54c0b7bac35a39acc2bf16015f85.tar.gz |
patch 8.0.0486: crash and endless loop when closing windows in autocmdv8.0.0486
Problem: Crash and endless loop when closing windows in a SessionLoadPost
autocommand.
Solution: Check for valid tabpage. (partly neovim #6308)
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/window.pro | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/proto/window.pro b/src/proto/window.pro index 8b649dbf1..e53123c55 100644 --- a/src/proto/window.pro +++ b/src/proto/window.pro @@ -26,6 +26,8 @@ int win_new_tabpage(int after); int may_open_tabpage(void); int make_tabpages(int maxcount); int valid_tabpage(tabpage_T *tpc); +int valid_tabpage_win(tabpage_T *tpc); +void close_tabpage(tabpage_T *tpc); tabpage_T *find_tabpage(int n); int tabpage_index(tabpage_T *ftp); void goto_tabpage(int n); |