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 @@ -10388,6 +10388,7 @@ ex_normal(exarg_T *eap)
10388
10388
{
10389
10389
curwin -> w_cursor .lnum = eap -> line1 ++ ;
10390
10390
curwin -> w_cursor .col = 0 ;
10391
+ check_cursor_moved (curwin );
10391
10392
}
10392
10393
10393
10394
exec_normal_cmd (
Original file line number Diff line number Diff line change @@ -203,11 +203,9 @@ update_topline(void)
203
203
int save_so = p_so ;
204
204
#endif
205
205
206
- if (!screen_valid (TRUE))
207
- return ;
208
-
209
- /* If the window height is zero just use the cursor line. */
210
- if (curwin -> w_height == 0 )
206
+ /* If there is no valid screen and when the window height is zero just use
207
+ * the cursor line. */
208
+ if (!screen_valid (TRUE) || curwin -> w_height == 0 )
211
209
{
212
210
curwin -> w_topline = curwin -> w_cursor .lnum ;
213
211
curwin -> w_botline = curwin -> w_topline ;
@@ -2621,6 +2619,7 @@ halfpage(int flag, linenr_T Prenum)
2621
2619
n = (curwin -> w_p_scr <= curwin -> w_height ) ?
2622
2620
curwin -> w_p_scr : curwin -> w_height ;
2623
2621
2622
+ update_topline ();
2624
2623
validate_botline ();
2625
2624
room = curwin -> w_empty_rows ;
2626
2625
#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 @@ -779,6 +779,8 @@ static char *(features[]) =
779
779
780
780
static int included_patches [] =
781
781
{ /* Add new patch number below this line */
782
+ /**/
783
+ 515 ,
782
784
/**/
783
785
514 ,
784
786
/**/
You can’t perform that action at this time.
0 commit comments