Browse Source

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.
pull/14337/head
Jan Edmund Lazo 4 weeks ago
parent
commit
fa9e5ab0ea
No known key found for this signature in database GPG Key ID: 64915E6E9F735B15
  1. 7
      src/nvim/testdir/test_shift.vim

7
src/nvim/testdir/test_shift.vim

@ -108,9 +108,10 @@ func Test_ex_shift_errors()
call assert_fails('>!', 'E477:')
call assert_fails('<!', 'E477:')
throw 'skipped: TODO: '
call assert_fails('2,1>', 'E493:')
call assert_fails('2,1<', 'E493:')
" call assert_fails('2,1>', 'E493:')
call assert_fails('execute "2,1>"', 'E493:')
" call assert_fails('2,1<', 'E493:')
call assert_fails('execute "2,1<"', 'E493:')
endfunc
" vim: shiftwidth=2 sts=2 expandtab
Loading…
Cancel
Save