Mercurial > vim
diff src/main.c @ 10819:cd179d7d0b5d v8.0.0299
patch 8.0.0299: a window resize is sometimes not taking effect
commit https://github.com/vim/vim/commit/6b40f303291be6b2fe524b5708e089773048c269
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 3 22:01:47 2017 +0100
patch 8.0.0299: a window resize is sometimes not taking effect
Problem: When the GUI window is resized Vim does not always take over the
new size. (Luchr)
Solution: Reset new_p_guifont in gui_resize_shell(). Call
gui_may_resize_shell() in the main loop.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 03 Feb 2017 22:15:04 +0100 |
parents | 65e0537a4560 |
children | 5780bd3a5a7e |
line wrap: on
line diff
--- a/src/main.c +++ b/src/main.c @@ -1118,6 +1118,10 @@ main_loop( skip_redraw = FALSE; else if (do_redraw || stuff_empty()) { +# ifdef FEAT_GUI + /* If ui_breakcheck() was used a resize may have been postponed. */ + gui_may_resize_shell(); +# endif #if defined(FEAT_AUTOCMD) || defined(FEAT_CONCEAL) /* Trigger CursorMoved if the cursor moved. */ if (!finish_op && (