Mercurial > vim
comparison src/popupwin.c @ 17841:9513821d9d8f v8.1.1917
patch 8.1.1917: non-current window is not redrawn when moving popup
Commit: https://github.com/vim/vim/commit/356375fbf882535b5a5980d175c11abfa446a7cb
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 24 14:46:29 2019 +0200
patch 8.1.1917: non-current window is not redrawn when moving popup
Problem: Non-current window is not redrawn when moving popup. (Ben Jackson)
Solution: Redraw all windows under a popup. (closes https://github.com/vim/vim/issues/4860)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 24 Aug 2019 15:00:04 +0200 |
parents | 7e6b7a4f13bc |
children | 9696c76f2213 |
comparison
equal
deleted
inserted
replaced
17840:0408953949ba | 17841:9513821d9d8f |
---|---|
1217 } | 1217 } |
1218 | 1218 |
1219 wp->w_popup_last_changedtick = CHANGEDTICK(wp->w_buffer); | 1219 wp->w_popup_last_changedtick = CHANGEDTICK(wp->w_buffer); |
1220 | 1220 |
1221 // Need to update popup_mask if the position or size changed. | 1221 // Need to update popup_mask if the position or size changed. |
1222 // And redraw windows that were behind the popup. | 1222 // And redraw windows and statuslines that were behind the popup. |
1223 if (org_winrow != wp->w_winrow | 1223 if (org_winrow != wp->w_winrow |
1224 || org_wincol != wp->w_wincol | 1224 || org_wincol != wp->w_wincol |
1225 || org_leftcol != wp->w_leftcol | 1225 || org_leftcol != wp->w_leftcol |
1226 || org_leftoff != wp->w_popup_leftoff | 1226 || org_leftoff != wp->w_popup_leftoff |
1227 || org_width != wp->w_width | 1227 || org_width != wp->w_width |
1228 || org_height != wp->w_height) | 1228 || org_height != wp->w_height) |
1229 { | 1229 { |
1230 redraw_all_later(VALID); | |
1231 redraw_win_later(wp, NOT_VALID); | 1230 redraw_win_later(wp, NOT_VALID); |
1231 redraw_all_later(SOME_VALID); | |
1232 status_redraw_all(); | |
1232 if (wp->w_popup_flags & POPF_ON_CMDLINE) | 1233 if (wp->w_popup_flags & POPF_ON_CMDLINE) |
1233 clear_cmdline = TRUE; | 1234 clear_cmdline = TRUE; |
1234 popup_mask_refresh = TRUE; | 1235 popup_mask_refresh = TRUE; |
1235 } | 1236 } |
1236 } | 1237 } |