summaryrefslogtreecommitdiff
path: root/src/testdir/test_cmdline.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-07-23 15:47:34 +0200
committerBram Moolenaar <Bram@vim.org>2016-07-23 15:47:34 +0200
commitb49edc11a1872fa99befa9a4a8ea6c8537868038 (patch)
treea2ab0cd4f0d8616267de35c6c0a1e1d80ec1b5d1 /src/testdir/test_cmdline.vim
parent61c04493b00f85d0b97436260a9ef9ab82143b78 (diff)
downloadvim-git-b49edc11a1872fa99befa9a4a8ea6c8537868038.tar.gz
patch 7.4.2096v7.4.2096
Problem: Lambda functions show up with completion. Solution: Don't show lambda functions. (Ken Takata)
Diffstat (limited to 'src/testdir/test_cmdline.vim')
-rw-r--r--src/testdir/test_cmdline.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim
index 054d39b0f..0ddbcec26 100644
--- 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)