mirror of
https://github.com/neovim/neovim.git
synced 2026-03-10 01:54:05 +10:00
Problem: ":dl" is seen as ":dlist" instead of ":delete".
Solution: Do not use cmdidxs2[] if the length is 1. (closes vim/vim#4721)
94f82cbacf
11 lines
211 B
VimL
11 lines
211 B
VimL
" Tests for various Ex commands.
|
|
|
|
func Test_ex_delete()
|
|
new
|
|
call setline(1, ['a', 'b', 'c'])
|
|
2
|
|
" :dl is :delete with the "l" flag, not :dlist
|
|
.dl
|
|
call assert_equal(['a', 'c'], getline(1, 2))
|
|
endfunc
|