summaryrefslogtreecommitdiffstats
path: root/src/move.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-02-28 22:20:10 +0100
committerBram Moolenaar <Bram@vim.org>2020-02-28 22:20:10 +0100
commite52e0c89d1a6305beca3c01f89a4892dcb43bc71 (patch)
treed54216cc94ae0eb3c8a737b3298be99b9360297c /src/move.c
parent80ae880f5fed8022c69d05dd1efee49259929cb5 (diff)
patch 8.2.0328: no redraw when leaving term-normal mode in popup terminalv8.2.0328
Problem: No redraw when leaving terminal-normal mode in a terminal popup window. Solution: Redraw the popup window. (closes #5708)
Diffstat (limited to 'src/move.c')
-rw-r--r--src/move.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/move.c b/src/move.c
index 6b854541c0..5b3fb35fb4 100644
--- a/src/move.c
+++ b/src/move.c
@@ -1174,6 +1174,13 @@ curs_columns(
&& !pum_visible())
redraw_later(SOME_VALID);
#endif
+#if defined(FEAT_PROP_POPUP) && defined(FEAT_TERMINAL)
+ if (popup_is_popup(curwin) && curbuf->b_term != NULL)
+ {
+ curwin->w_wrow += popup_top_extra(curwin);
+ curwin->w_wcol += popup_left_extra(curwin);
+ }
+#endif
// now w_leftcol is valid, avoid check_cursor_moved() thinking otherwise
curwin->w_valid_leftcol = curwin->w_leftcol;