forked from aniani/vim
patch 8.2.5045: can escape a terminal popup window when the job is finished
Problem: Can escape a terminal popup window when the job is finished. Solution: Only check for a finished job where it is relevant. (closes #10253)
This commit is contained in:
@@ -2760,7 +2760,6 @@ error_if_popup_window(int also_with_term UNUSED)
|
||||
if (WIN_IS_POPUP(curwin)
|
||||
# ifdef FEAT_TERMINAL
|
||||
&& (also_with_term || curbuf->b_term == NULL)
|
||||
&& !term_is_finished(curbuf)
|
||||
# endif
|
||||
)
|
||||
{
|
||||
|
Reference in New Issue
Block a user