We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8d7a68e + a1977aa commit 8df28f3Copy full SHA for 8df28f3
src/window.c
@@ -5810,6 +5810,9 @@ win_new_height(win_T *wp, int height)
5810
void
5811
win_new_width(win_T *wp, int width)
5812
{
5813
+#ifdef FEAT_GUI_MACVIM
5814
+ int resized = wp->w_width != width;
5815
+#endif
5816
wp->w_width = width;
5817
wp->w_lines_valid = 0;
5818
changed_line_abv_curs_win(wp);
@@ -5821,7 +5824,7 @@ win_new_width(win_T *wp, int width)
5821
5824
}
5822
5825
#ifdef FEAT_GUI_MACVIM
5823
5826
/* The view may have moved, so clear all or display may get corrupted. */
- redraw_win_later(wp, gui.in_use ? CLEAR : NOT_VALID);
5827
+ redraw_win_later(wp, resized && gui.in_use ? CLEAR : NOT_VALID);
5828
#else
5829
redraw_win_later(wp, NOT_VALID);
5830
#endif
0 commit comments