diff options
author | Kota Kato <github@kat0h.com> | 2023-01-18 15:27:38 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-01-18 15:27:38 +0000 |
commit | 90c2353365c5da40dec01b09e1f482983cf7f55d (patch) | |
tree | a47d5f873b94349f6a11669d744957847be8dfd6 /src/testdir/test_cmdline.vim | |
parent | 486fc25a295464d107264b63997bdbe3745e3c71 (diff) |
patch 9.0.1218: completion includes functions that don't workv9.0.1218
Problem: Completion includes functions that don't work.
Solution: Skip functions that are not implemented. (Kota Kato,
closes #11845)
Diffstat (limited to 'src/testdir/test_cmdline.vim')
-rw-r--r-- | src/testdir/test_cmdline.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim index a832306208..9eca9186fa 100644 --- a/src/testdir/test_cmdline.vim +++ b/src/testdir/test_cmdline.vim @@ -489,6 +489,12 @@ func Test_getcompletion() let l = getcompletion('paint', 'function') call assert_equal([], l) + if !has('ruby') + " global_functions[] has an entry but it doesn't have an implemention + let l = getcompletion('ruby', 'function') + call assert_equal([], l) + endif + let Flambda = {-> 'hello'} let l = getcompletion('', 'function') let l = filter(l, {i, v -> v =~ 'lambda'}) |