comparison src/popupwin.c @ 29046:ab7f050f4335 v8.2.5045

patch 8.2.5045: can escape a terminal popup window when the job is finished Commit: https://github.com/vim/vim/commit/10db31f9493425a20f1e53d0f214e621f16d65de Author: Bram Moolenaar <Bram@vim.org> Date: Mon May 30 17:58:03 2022 +0100 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)
author Bram Moolenaar <Bram@vim.org>
date Mon, 30 May 2022 19:00:03 +0200
parents 5d71ed834c03
children da56650de132
comparison
equal deleted inserted replaced
29045:a519aa0dbbb5 29046:ab7f050f4335
2758 // commands are disallowed then. When a terminal runs in the popup most 2758 // commands are disallowed then. When a terminal runs in the popup most
2759 // things are allowed. When a terminal is finished it can be closed. 2759 // things are allowed. When a terminal is finished it can be closed.
2760 if (WIN_IS_POPUP(curwin) 2760 if (WIN_IS_POPUP(curwin)
2761 # ifdef FEAT_TERMINAL 2761 # ifdef FEAT_TERMINAL
2762 && (also_with_term || curbuf->b_term == NULL) 2762 && (also_with_term || curbuf->b_term == NULL)
2763 && !term_is_finished(curbuf)
2764 # endif 2763 # endif
2765 ) 2764 )
2766 { 2765 {
2767 error_for_popup_window(); 2766 error_for_popup_window();
2768 return TRUE; 2767 return TRUE;