diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-02 15:25:16 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-02 15:25:16 +0100 |
commit | d98c0b63abd7b0e61a383669474abe96044615af (patch) | |
tree | 81409a98d3a6d7712373b57242a40171ab64d8de /src/popupwin.c | |
parent | 3180fe6c6dc0728d21c6318b957022b029c234f0 (diff) | |
download | vim-git-d98c0b63abd7b0e61a383669474abe96044615af.tar.gz |
patch 8.2.0196: blocking commands for a finished job in a popup windowv8.2.0196
Problem: Blocking commands for a finished job in a popup window.
Solution: Do not block commands if the job has finished. Adjust test.
Diffstat (limited to 'src/popupwin.c')
-rw-r--r-- | src/popupwin.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/popupwin.c b/src/popupwin.c index d4f6026f9..714f457fe 100644 --- a/src/popupwin.c +++ b/src/popupwin.c @@ -2863,10 +2863,15 @@ error_if_popup_window(int also_with_term UNUSED) } # if defined(FEAT_TERMINAL) || defined(PROTO) +/* + * Return TRUE if the current window is running a terminal in a popup window. + * Return FALSE when the job has ended. + */ int error_if_term_popup_window() { - if (WIN_IS_POPUP(curwin) && curbuf->b_term != NULL) + if (WIN_IS_POPUP(curwin) && curbuf->b_term != NULL + && term_job_running(curbuf->b_term)) { emsg(_("E899: Not allowed for a terminal in a popup window")); return TRUE; |