0
0
mirror of https://github.com/vim/vim.git synced 2025-10-04 05:25:06 -04:00

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 #4721)
This commit is contained in:
Bram Moolenaar
2019-07-24 22:30:27 +02:00
parent 1f164b1968
commit 94f82cbacf
4 changed files with 15 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