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:
@@ -491,7 +491,7 @@ win_line(
|
||||
{
|
||||
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 @@ win_line(
|
||||
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)
|
||||
|
Reference in New Issue
Block a user