File tree 4 files changed +18
-5
lines changed
4 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -10361,6 +10361,7 @@ ex_normal(exarg_T *eap)
10361
10361
{
10362
10362
curwin -> w_cursor .lnum = eap -> line1 ++ ;
10363
10363
curwin -> w_cursor .col = 0 ;
10364
+ check_cursor_moved (curwin );
10364
10365
}
10365
10366
10366
10367
exec_normal_cmd (
Original file line number Diff line number Diff line change @@ -177,11 +177,9 @@ update_topline(void)
177
177
int save_so = p_so ;
178
178
#endif
179
179
180
- if (!screen_valid (TRUE))
181
- return ;
182
-
183
- /* If the window height is zero just use the cursor line. */
184
- if (curwin -> w_height == 0 )
180
+ /* If there is no valid screen and when the window height is zero just use
181
+ * the cursor line. */
182
+ if (!screen_valid (TRUE) || curwin -> w_height == 0 )
185
183
{
186
184
curwin -> w_topline = curwin -> w_cursor .lnum ;
187
185
curwin -> w_botline = curwin -> w_topline ;
@@ -2592,6 +2590,7 @@ halfpage(int flag, linenr_T Prenum)
2592
2590
n = (curwin -> w_p_scr <= curwin -> w_height ) ?
2593
2591
curwin -> w_p_scr : curwin -> w_height ;
2594
2592
2593
+ update_topline ();
2595
2594
validate_botline ();
2596
2595
room = curwin -> w_empty_rows ;
2597
2596
#ifdef FEAT_DIFF
Original file line number Diff line number Diff line change @@ -197,3 +197,14 @@ func Test_progpath()
197
197
" Only expect "vim" to appear in v:progname.
198
198
call assert_match (' vim\c' , v: progname )
199
199
endfunc
200
+
201
+ func Test_silent_ex_mode ()
202
+ if ! has (' unix' ) || has (' gui_running' )
203
+ " can't get output of Vim.
204
+ return
205
+ endif
206
+
207
+ " This caused an ml_get error.
208
+ let out = system (GetVimCommand () . ' -u NONE -es -c'' set verbose=1|h|exe "%norm\<c-y>\<c-d>"'' -c cq' )
209
+ call assert_notmatch (' E315:' , out)
210
+ endfunc
Original file line number Diff line number Diff line change @@ -764,6 +764,8 @@ static char *(features[]) =
764
764
765
765
static int included_patches [] =
766
766
{ /* Add new patch number below this line */
767
+ /**/
768
+ 515 ,
767
769
/**/
768
770
514 ,
769
771
/**/
You can’t perform that action at this time.
0 commit comments