summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-02-03 22:01:47 +0100
committerBram Moolenaar <Bram@vim.org>2017-02-03 22:01:47 +0100
commit6b40f303291be6b2fe524b5708e089773048c269 (patch)
treeb1218afefdd00a14509c86fbefe601596bd97de7 /src/main.c
parentcbf20fbcd3e9bb006f694bcc35da859930fb12a2 (diff)
downloadvim-git-6b40f303291be6b2fe524b5708e089773048c269.tar.gz
patch 8.0.0299: a window resize is sometimes not taking effectv8.0.0299
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.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index f3c471a85..0ed94ae90 100644
--- 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 && (