Mercurial > vim
comparison src/testdir/test_usercommands.vim @ 27187:8950a7b6cc89 v8.2.4122
patch 8.2.4122: ":command Cmd" does not show custom completion argument
Commit: https://github.com/vim/vim/commit/3f3597be3ffa9ae226b2e9831e4ed64c8ae43c42
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 17 19:06:56 2022 +0000
patch 8.2.4122: ":command Cmd" does not show custom completion argument
Problem: ":command Cmd" does not show custom completion argument.
Solution: Show the completion argument when using ":verbose".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 17 Jan 2022 20:15:03 +0100 |
parents | 5ea6db641b5e |
children | 4c16acb2525f |
comparison
equal
deleted
inserted
replaced
27186:0ef7a05715d3 | 27187:8950a7b6cc89 |
---|---|
587 call assert_equal("\n Name Args Address Complete Definition" | 587 call assert_equal("\n Name Args Address Complete Definition" |
588 \ .. "\n DoCmd 0 :<CR><Tab><C-D>", | 588 \ .. "\n DoCmd 0 :<CR><Tab><C-D>", |
589 \ execute('command DoCmd')) | 589 \ execute('command DoCmd')) |
590 | 590 |
591 " Test output in verbose mode. | 591 " Test output in verbose mode. |
592 command! DoCmd : | 592 command! -nargs=+ -complete=customlist,SomeFunc DoCmd :ls |
593 call assert_match("^\n" | 593 call assert_match("^\n" |
594 \ .. " Name Args Address Complete Definition\n" | 594 \ .. " Name Args Address Complete Definition\n" |
595 \ .. " DoCmd 0 :\n" | 595 \ .. " DoCmd + customlist,SomeFunc :ls\n" |
596 \ .. "\tLast set from .*/test_usercommands.vim line \\d\\+$", | 596 \ .. "\tLast set from .*/test_usercommands.vim line \\d\\+$", |
597 \ execute('verbose command DoCmd')) | 597 \ execute('verbose command DoCmd')) |
598 | 598 |
599 comclear | 599 comclear |
600 call assert_equal("\nNo user-defined commands found", execute(':command Xxx')) | 600 call assert_equal("\nNo user-defined commands found", execute(':command Xxx')) |