Skip to content

Commit fa9e5ab

Browse files
committed
test/old: ':execute' does not suppress range error
:2,1> should trigger backwards range error but it is suppressed for inccomand. :execute "2,1>" does not suppress the error.
1 parent 4ff70cc commit fa9e5ab

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/nvim/testdir/test_shift.vim

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,10 @@ func Test_ex_shift_errors()
108108
call assert_fails('>!', 'E477:')
109109
call assert_fails('<!', 'E477:')
110110

111-
throw 'skipped: TODO: '
112-
call assert_fails('2,1>', 'E493:')
113-
call assert_fails('2,1<', 'E493:')
111+
" call assert_fails('2,1>', 'E493:')
112+
call assert_fails('execute "2,1>"', 'E493:')
113+
" call assert_fails('2,1<', 'E493:')
114+
call assert_fails('execute "2,1<"', 'E493:')
114115
endfunc
115116

116117
" vim: shiftwidth=2 sts=2 expandtab

0 commit comments

Comments
 (0)