diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-07-24 22:30:27 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-07-24 22:30:27 +0200 |
commit | 94f82cbacf76767b5ac32f813e1d670501dbd0e6 (patch) | |
tree | 28f860d554c74d9ce6b807713f6d24da70307de1 /src/testdir | |
parent | 1f164b19685d8ad709b11f3f1933685469251e30 (diff) | |
download | vim-git-94f82cbacf76767b5ac32f813e1d670501dbd0e6.tar.gz |
patch 8.1.1746: ":dl" is seen as ":dlist" instead of ":delete"v8.1.1746
Problem: ":dl" is seen as ":dlist" instead of ":delete".
Solution: Do not use cmdidxs2[] if the length is 1. (closes #4721)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/Make_all.mak | 2 | ||||
-rw-r--r-- | src/testdir/test_excmd.vim | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/testdir/Make_all.mak b/src/testdir/Make_all.mak index eb014a95c..a0898dc02 100644 --- a/src/testdir/Make_all.mak +++ b/src/testdir/Make_all.mak @@ -106,6 +106,7 @@ NEW_TESTS = \ test_ex_equal \ test_ex_undo \ test_ex_z \ + test_excmd \ test_exec_while_if \ test_execute_func \ test_exists \ @@ -328,6 +329,7 @@ NEW_TESTS_RES = \ test_erasebackword.res \ test_escaped_glob.res \ test_eval_stuff.res \ + test_excmd.res \ test_exec_while_if.res \ test_exists.res \ test_exists_autocmd.res \ diff --git a/src/testdir/test_excmd.vim b/src/testdir/test_excmd.vim new file mode 100644 index 000000000..f5ce97920 --- /dev/null +++ b/src/testdir/test_excmd.vim @@ -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 |