mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.0196: blocking commands for a finished job in a popup window
Problem: Blocking commands for a finished job in a popup window. Solution: Do not block commands if the job has finished. Adjust test.
This commit is contained in:
11
src/window.c
11
src/window.c
@@ -2441,6 +2441,11 @@ win_close(win_T *win, int free_buf)
|
||||
int had_diffmode = win->w_p_diff;
|
||||
#endif
|
||||
|
||||
#if defined(FEAT_TERMINAL) && defined(FEAT_PROP_POPUP)
|
||||
// Can close a popup window with a terminal if the job has finished.
|
||||
if (may_close_term_popup() == OK)
|
||||
return OK;
|
||||
#endif
|
||||
if (ERROR_IF_ANY_POPUP_WINDOW)
|
||||
return FAIL;
|
||||
|
||||
@@ -6439,6 +6444,12 @@ only_one_window(void)
|
||||
int count = 0;
|
||||
win_T *wp;
|
||||
|
||||
#if defined(FEAT_PROP_POPUP)
|
||||
// If the current window is a popup then there always is another window.
|
||||
if (popup_is_popup(curwin))
|
||||
return FALSE;
|
||||
#endif
|
||||
|
||||
// If there is another tab page there always is another window.
|
||||
if (first_tabpage->tp_next != NULL)
|
||||
return FALSE;
|
||||
|
Reference in New Issue
Block a user