Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
10818:9892ae5794e3 | 10819:cd179d7d0b5d |
---|---|
1116 */ | 1116 */ |
1117 if (skip_redraw || exmode_active) | 1117 if (skip_redraw || exmode_active) |
1118 skip_redraw = FALSE; | 1118 skip_redraw = FALSE; |
1119 else if (do_redraw || stuff_empty()) | 1119 else if (do_redraw || stuff_empty()) |
1120 { | 1120 { |
1121 # ifdef FEAT_GUI | |
1122 /* If ui_breakcheck() was used a resize may have been postponed. */ | |
1123 gui_may_resize_shell(); | |
1124 # endif | |
1121 #if defined(FEAT_AUTOCMD) || defined(FEAT_CONCEAL) | 1125 #if defined(FEAT_AUTOCMD) || defined(FEAT_CONCEAL) |
1122 /* Trigger CursorMoved if the cursor moved. */ | 1126 /* Trigger CursorMoved if the cursor moved. */ |
1123 if (!finish_op && ( | 1127 if (!finish_op && ( |
1124 # ifdef FEAT_AUTOCMD | 1128 # ifdef FEAT_AUTOCMD |
1125 has_cursormoved() | 1129 has_cursormoved() |