diff src/testdir/test_cmdline.vim @ 9638:af0d98d8836e v7.4.2096

commit https://github.com/vim/vim/commit/b49edc11a1872fa99befa9a4a8ea6c8537868038 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 23 15:47:34 2016 +0200 patch 7.4.2096 Problem: Lambda functions show up with completion. Solution: Don't show lambda functions. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Sat, 23 Jul 2016 16:00:06 +0200
parents e3b6a4a87684
children 6255ff1ea003
line wrap: on
line diff
--- a/src/testdir/test_cmdline.vim
+++ b/src/testdir/test_cmdline.vim
@@ -69,6 +69,11 @@ func Test_getcompletion()
   let l = getcompletion('tag', 'function')
   call assert_true(index(l, 'taglist(') >= 0)
 
+  let Flambda = {-> 'hello'}
+  let l = getcompletion('', 'function')
+  let l = filter(l, {i, v -> v =~ 'lambda'})
+  call assert_equal(0, len(l))
+
   let l = getcompletion('run', 'file')
   call assert_true(index(l, 'runtest.vim') >= 0)