File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1351,5 +1351,25 @@ func Test_rename_buffer_on_startup()
13511351 call delete (' Xresult' )
13521352endfunc
13531353
1354+ " Test that -cq works as expected
1355+ func Test_cq_zero_exmode ()
1356+ let logfile = ' Xcq_log.txt'
1357+ let out = system (GetVimCommand () .. ' --clean --log ' .. logfile .. ' -es -X -c "argdelete foobar" -c"7cq"' )
1358+ call assert_equal (8 , v: shell_error )
1359+ let log = filter (readfile (logfile), {idx, val - > val = ~ " E480" })
1360+ call assert_match (' E480: No match: foobar' , log [0 ])
1361+ call delete (logfile)
1362+
1363+ " wrap-around on Unix
1364+ let out = system (GetVimCommand () .. ' --clean --log ' .. logfile .. ' -es -X -c "argdelete foobar" -c"255cq"' )
1365+ if ! has (' win32' )
1366+ call assert_equal (0 , v: shell_error )
1367+ else
1368+ call assert_equal (256 , v: shell_error )
1369+ endif
1370+ let log = filter (readfile (logfile), {idx, val - > val = ~ " E480" })
1371+ call assert_match (' E480: No match: foobar' , log [0 ])
1372+ call delete (' Xcq_log.txt' )
1373+ endfunc
13541374
13551375" vim: shiftwidth = 2 sts = 2 expandtab
Original file line number Diff line number Diff line change @@ -704,6 +704,8 @@ static char *(features[]) =
704704
705705static int included_patches [] =
706706{ /* Add new patch number below this line */
707+ /**/
708+ 2023 ,
707709/**/
708710 2022 ,
709711/**/
You can’t perform that action at this time.
0 commit comments