comparison 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
comparison
equal deleted inserted replaced
11994:ed6f0cb37dab 11995:7df3dd3c0ac1
220 let l = getcompletion('', 'messages') 220 let l = getcompletion('', 'messages')
221 call assert_true(index(l, 'clear') >= 0) 221 call assert_true(index(l, 'clear') >= 0)
222 let l = getcompletion('not', 'messages') 222 let l = getcompletion('not', 'messages')
223 call assert_equal([], l) 223 call assert_equal([], l)
224 224
225 let l = getcompletion('', 'mapclear')
226 call assert_true(index(l, '<buffer>') >= 0)
227 let l = getcompletion('not', 'mapclear')
228 call assert_equal([], l)
229
225 if has('cscope') 230 if has('cscope')
226 let l = getcompletion('', 'cscope') 231 let l = getcompletion('', 'cscope')
227 let cmds = ['add', 'find', 'help', 'kill', 'reset', 'show'] 232 let cmds = ['add', 'find', 'help', 'kill', 'reset', 'show']
228 call assert_equal(cmds, l) 233 call assert_equal(cmds, l)
229 " using cmdline completion must not change the result 234 " using cmdline completion must not change the result