mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.0328: no redraw when leaving term-normal mode in popup terminal
Problem: No redraw when leaving terminal-normal mode in a terminal popup window. Solution: Redraw the popup window. (closes #5708)
This commit is contained in:
@@ -3505,9 +3505,12 @@ update_popups(void (*win_update)(win_T *wp))
|
||||
|
||||
wp->w_winrow -= top_off;
|
||||
wp->w_wincol -= left_extra;
|
||||
// cursor position matters in terminal
|
||||
wp->w_wrow += top_off;
|
||||
wp->w_wcol += left_extra;
|
||||
// cursor position matters in terminal in job mode
|
||||
if (wp != curwin || !term_in_normal_mode())
|
||||
{
|
||||
wp->w_wrow += top_off;
|
||||
wp->w_wcol += left_extra;
|
||||
}
|
||||
|
||||
total_width = popup_width(wp);
|
||||
total_height = popup_height(wp);
|
||||
|
Reference in New Issue
Block a user