summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.0698
blob: 83763e83366f8e913dc95c25f7516df992ec6764 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
To: vim_dev@googlegroups.com
Subject: Patch 8.1.0698
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 8.1.0698
Problem:    Clearing the window is used too often, causing the command line
            to be cleared when opening a tab. (Miroslav Koškár)
Solution:   Use NOT_VALID instead of CLEAR.  (suggested by Jason Franklin,
            closes #630)  Also do this for a few other places where clearing
            the screen isn't really needed.
Files:      src/window.c


*** ../vim-8.1.0697/src/window.c	2018-12-22 17:07:45.771347741 +0100
--- src/window.c	2019-01-06 17:06:42.216917047 +0100
***************
*** 1577,1583 ****
      (void)win_comp_pos();		/* recompute window positions */
  
      win_enter(wp, TRUE);
!     redraw_later(CLEAR);
  }
  
  /*
--- 1577,1583 ----
      (void)win_comp_pos();		/* recompute window positions */
  
      win_enter(wp, TRUE);
!     redraw_all_later(NOT_VALID);
  }
  
  /*
***************
*** 1660,1666 ****
  	(void)win_comp_pos();
      }
  
!     redraw_later(CLEAR);
  }
  
  /*
--- 1660,1666 ----
  	(void)win_comp_pos();
      }
  
!     redraw_all_later(NOT_VALID);
  }
  
  /*
***************
*** 1817,1823 ****
  	    frame_new_height(topfr, height, FALSE, FALSE);
  	    topfr->fr_win->w_wincol = col;
  	    frame_new_width(topfr, width, FALSE, FALSE);
! 	    redraw_all_later(CLEAR);
  	}
      }
      else if (topfr->fr_layout == FR_ROW)
--- 1817,1823 ----
  	    frame_new_height(topfr, height, FALSE, FALSE);
  	    topfr->fr_win->w_wincol = col;
  	    frame_new_width(topfr, width, FALSE, FALSE);
! 	    redraw_all_later(NOT_VALID);
  	}
      }
      else if (topfr->fr_layout == FR_ROW)
***************
*** 3702,3708 ****
  	entering_window(curwin);
  #endif
  
! 	redraw_all_later(CLEAR);
  	apply_autocmds(EVENT_WINNEW, NULL, NULL, FALSE, curbuf);
  	apply_autocmds(EVENT_WINENTER, NULL, NULL, FALSE, curbuf);
  	apply_autocmds(EVENT_TABNEW, NULL, NULL, FALSE, curbuf);
--- 3702,3708 ----
  	entering_window(curwin);
  #endif
  
! 	redraw_all_later(NOT_VALID);
  	apply_autocmds(EVENT_WINNEW, NULL, NULL, FALSE, curbuf);
  	apply_autocmds(EVENT_WINENTER, NULL, NULL, FALSE, curbuf);
  	apply_autocmds(EVENT_TABNEW, NULL, NULL, FALSE, curbuf);
***************
*** 3939,3945 ****
  
      last_status(FALSE);		/* status line may appear or disappear */
      (void)win_comp_pos();	/* recompute w_winrow for all windows */
-     must_redraw = CLEAR;	/* need to redraw everything */
  #ifdef FEAT_DIFF
      diff_need_scrollbind = TRUE;
  #endif
--- 3939,3944 ----
***************
*** 3973,3979 ****
  	    apply_autocmds(EVENT_BUFENTER, NULL, NULL, FALSE, curbuf);
      }
  
!     redraw_all_later(CLEAR);
  }
  
  /*
--- 3972,3978 ----
  	    apply_autocmds(EVENT_BUFENTER, NULL, NULL, FALSE, curbuf);
      }
  
!     redraw_all_later(NOT_VALID);
  }
  
  /*
***************
*** 6569,6575 ****
  	win_comp_pos();
  	if (wp != NULL && close_curwin)
  	    win_goto(wp);
! 	redraw_all_later(CLEAR);
      }
      clear_snapshot(curtab, idx);
  }
--- 6568,6574 ----
  	win_comp_pos();
  	if (wp != NULL && close_curwin)
  	    win_goto(wp);
! 	redraw_all_later(NOT_VALID);
      }
      clear_snapshot(curtab, idx);
  }
*** ../vim-8.1.0697/src/version.c	2019-01-06 16:23:29.499325079 +0100
--- src/version.c	2019-01-06 17:04:09.853949947 +0100
***************
*** 801,802 ****
--- 801,804 ----
  {   /* Add new patch number below this line */
+ /**/
+     698,
  /**/

-- 
Two percent of zero is almost nothing.

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///