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.
diff --git a/src/window.c b/src/window.c
index 6672433..6317c37 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4344,7 +4344,7 @@
#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_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_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);