diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-05-30 13:54:03 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-05-30 13:54:03 +0200 |
commit | e5b4486c4279a9674a9bb76130b4db53fb9303a0 (patch) | |
tree | 9cd31ae2e02e189ab80ee11db6bc28dfed657b27 /src/terminal.c | |
parent | 28cf44f761a7bf261bcd0760a1c5f61070f69595 (diff) |
patch 8.2.2908: crash when using a terminal popup window from cmdline windowv8.2.2908
Problem: Crash when using a terminal popup window from the cmdline window.
Solution: Instead of checking cmdwin_type call cmdwin_is_active().
(closes #8286)
Diffstat (limited to 'src/terminal.c')
-rw-r--r-- | src/terminal.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/terminal.c b/src/terminal.c index 9ff498f736..2189d01842 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -445,6 +445,13 @@ term_start( if (check_restricted() || check_secure()) return NULL; +#ifdef FEAT_CMDWIN + if (cmdwin_type != 0) + { + emsg(_(e_cannot_open_terminal_from_command_line_window)); + return NULL; + } +#endif if ((opt->jo_set & (JO_IN_IO + JO_OUT_IO + JO_ERR_IO)) == (JO_IN_IO + JO_OUT_IO + JO_ERR_IO) |