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/drawline.c b/src/drawline.c
index 4723915..176aa69 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -491,7 +491,7 @@
{
extra_check = TRUE;
get_term_attr = TRUE;
- win_attr = term_get_attr(wp->w_buffer, lnum, -1);
+ win_attr = term_get_attr(wp, lnum, -1);
}
#endif
@@ -1419,7 +1419,7 @@
syntax_attr = 0;
# ifdef FEAT_TERMINAL
if (get_term_attr)
- syntax_attr = term_get_attr(wp->w_buffer, lnum, vcol);
+ syntax_attr = term_get_attr(wp, lnum, vcol);
# endif
// Get syntax attribute.
if (has_syntax)