0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.0191: cannot put a terminal in a popup window

Problem:    Cannot put a terminal in a popup window.
Solution:   Allow opening a terminal in a popup window.  It will always have
            keyboard focus until closed.
This commit is contained in:
Bram Moolenaar
2020-02-01 21:57:29 +01:00
parent ab067a21b9
commit 219c7d0638
15 changed files with 306 additions and 60 deletions

View File

@@ -4344,7 +4344,7 @@ win_goto(win_T *wp)
#endif
#ifdef FEAT_PROP_POPUP
if (ERROR_IF_POPUP_WINDOW)
if (ERROR_IF_POPUP_WINDOW || ERROR_IF_TERM_POPUP_WINDOW)
return;
if (popup_is_popup(wp))
{
@@ -4486,6 +4486,10 @@ win_goto_ver(
{
win_T *win;
#ifdef FEAT_PROP_POPUP
if (ERROR_IF_TERM_POPUP_WINDOW)
return;
#endif
win = win_vert_neighbor(curtab, curwin, up, count);
if (win != NULL)
win_goto(win);
@@ -4564,6 +4568,10 @@ win_goto_hor(
{
win_T *win;
#ifdef FEAT_PROP_POPUP
if (ERROR_IF_TERM_POPUP_WINDOW)
return;
#endif
win = win_horz_neighbor(curtab, curwin, left, count);
if (win != NULL)
win_goto(win);