summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-03-22 18:13:01 +0000
committerBram Moolenaar <Bram@vim.org>2022-03-22 18:13:01 +0000
commit6f2465d336a9d4afe392db4084ef7e9db17e67c1 (patch)
tree3aaee0bf7b626607678be0c8835190a4ed695f24 /src/window.c
parente7dd0fa2c61fe71f12c72b0dcb7bb6415eb048fb (diff)
downloadvim-git-6f2465d336a9d4afe392db4084ef7e9db17e67c1.tar.gz
patch 8.2.4609: :unhide does not check for failing to close a windowv8.2.4609
Problem: :unhide does not check for failing to close a window. Solution: When closing a window fails continue with the next one. Do not try closing the autocmd window. (closes #9984)
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index cf11acf89..435ad037a 100644
--- a/src/window.c
+++ b/src/window.c
@@ -43,7 +43,6 @@ static int frame_minheight(frame_T *topfrp, win_T *next_curwin);
static int may_open_tabpage(void);
static int win_enter_ext(win_T *wp, int flags);
static void win_free(win_T *wp, tabpage_T *tp);
-static int win_unlisted(win_T *wp);
static void win_append(win_T *after, win_T *wp);
static void frame_append(frame_T *after, frame_T *frp);
static void frame_insert(frame_T *before, frame_T *frp);
@@ -5233,7 +5232,7 @@ win_free(
* Return TRUE if "wp" is not in the list of windows: the autocmd window or a
* popup window.
*/
- static int
+ int
win_unlisted(win_T *wp)
{
return wp == aucmd_win || WIN_IS_POPUP(wp);