vim-patch:8.1.1746: ":dl" is seen as ":dlist" instead of ":delete"

Problem:    ":dl" is seen as ":dlist" instead of ":delete".
Solution:   Do not use cmdidxs2[] if the length is 1. (closes vim/vim#4721)
94f82cbacf
This commit is contained in:
Jan Edmund Lazo
2019-07-24 20:38:36 -04:00
parent 80487b59c9
commit 9ea449085d
2 changed files with 11 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
" 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