1
0
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:
Bram Moolenaar
2022-05-30 17:58:03 +01:00
parent be99042b03
commit 10db31f949
7 changed files with 48 additions and 25 deletions

View File

@@ -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
)
{