0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.2908: crash when using a terminal popup window from cmdline window

Problem:    Crash when using a terminal popup window from the cmdline window.
Solution:   Instead of checking cmdwin_type call cmdwin_is_active().
            (closes #8286)
This commit is contained in:
Bram Moolenaar
2021-05-30 13:54:03 +02:00
parent 28cf44f761
commit e5b4486c42
5 changed files with 37 additions and 0 deletions

View File

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