diff src/testdir/test_cmdline.vim @ 11995:7df3dd3c0ac1 v8.0.0878

patch 8.0.0878: no completion for :mapclear commit https://github.com/vim/vim/commit/cae92dc3d5bdd4009910671328cd01394bfbe2cf Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 6 15:22:15 2017 +0200 patch 8.0.0878: no completion for :mapclear Problem: No completion for :mapclear. Solution: Add completion (Nobuhiro Takasaki et al. closes https://github.com/vim/vim/issues/1943)
author Christian Brabandt <cb@256bit.org>
date Sun, 06 Aug 2017 15:30:04 +0200
parents 129077fb57e6
children 1fad9675d8fd
line wrap: on
line diff
--- a/src/testdir/test_cmdline.vim
+++ b/src/testdir/test_cmdline.vim
@@ -222,6 +222,11 @@ func Test_getcompletion()
   let l = getcompletion('not', 'messages')
   call assert_equal([], l)
 
+  let l = getcompletion('', 'mapclear')
+  call assert_true(index(l, '<buffer>') >= 0)
+  let l = getcompletion('not', 'mapclear')
+  call assert_equal([], l)
+
   if has('cscope')
     let l = getcompletion('', 'cscope')
     let cmds = ['add', 'find', 'help', 'kill', 'reset', 'show']