Mercurial > vim
comparison src/move.c @ 19542:9e428147e4ee v8.2.0328
patch 8.2.0328: no redraw when leaving term-normal mode in popup terminal
Commit: https://github.com/vim/vim/commit/e52e0c89d1a6305beca3c01f89a4892dcb43bc71
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 28 22:20:10 2020 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 28 Feb 2020 22:30:09 +0100 |
parents | 80b40bd5ec1a |
children | 0abcf69badda |
comparison
equal
deleted
inserted
replaced
19541:80dd4d7df929 | 19542:9e428147e4ee |
---|---|
1172 // Redraw when w_virtcol changes and 'cursorcolumn' is set | 1172 // Redraw when w_virtcol changes and 'cursorcolumn' is set |
1173 if (curwin->w_p_cuc && (curwin->w_valid & VALID_VIRTCOL) == 0 | 1173 if (curwin->w_p_cuc && (curwin->w_valid & VALID_VIRTCOL) == 0 |
1174 && !pum_visible()) | 1174 && !pum_visible()) |
1175 redraw_later(SOME_VALID); | 1175 redraw_later(SOME_VALID); |
1176 #endif | 1176 #endif |
1177 #if defined(FEAT_PROP_POPUP) && defined(FEAT_TERMINAL) | |
1178 if (popup_is_popup(curwin) && curbuf->b_term != NULL) | |
1179 { | |
1180 curwin->w_wrow += popup_top_extra(curwin); | |
1181 curwin->w_wcol += popup_left_extra(curwin); | |
1182 } | |
1183 #endif | |
1177 | 1184 |
1178 // now w_leftcol is valid, avoid check_cursor_moved() thinking otherwise | 1185 // now w_leftcol is valid, avoid check_cursor_moved() thinking otherwise |
1179 curwin->w_valid_leftcol = curwin->w_leftcol; | 1186 curwin->w_valid_leftcol = curwin->w_leftcol; |
1180 | 1187 |
1181 curwin->w_valid |= VALID_WCOL|VALID_WROW|VALID_VIRTCOL; | 1188 curwin->w_valid |= VALID_WCOL|VALID_WROW|VALID_VIRTCOL; |