Mercurial > vim
comparison src/testdir/test_cmdline.vim @ 31772:152bb9e6b4b4 v9.0.1218
patch 9.0.1218: completion includes functions that don't work
Commit: https://github.com/vim/vim/commit/90c2353365c5da40dec01b09e1f482983cf7f55d
Author: Kota Kato <github@kat0h.com>
Date: Wed Jan 18 15:27:38 2023 +0000
patch 9.0.1218: completion includes functions that don't work
Problem: Completion includes functions that don't work.
Solution: Skip functions that are not implemented. (Kota Kato,
closes #11845)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 18 Jan 2023 16:30:06 +0100 |
parents | 874f82a0817c |
children | 18da1d44878a |
comparison
equal
deleted
inserted
replaced
31771:03c8e327f5ee | 31772:152bb9e6b4b4 |
---|---|
486 | 486 |
487 let l = getcompletion('tag', 'function') | 487 let l = getcompletion('tag', 'function') |
488 call assert_true(index(l, 'taglist(') >= 0) | 488 call assert_true(index(l, 'taglist(') >= 0) |
489 let l = getcompletion('paint', 'function') | 489 let l = getcompletion('paint', 'function') |
490 call assert_equal([], l) | 490 call assert_equal([], l) |
491 | |
492 if !has('ruby') | |
493 " global_functions[] has an entry but it doesn't have an implemention | |
494 let l = getcompletion('ruby', 'function') | |
495 call assert_equal([], l) | |
496 endif | |
491 | 497 |
492 let Flambda = {-> 'hello'} | 498 let Flambda = {-> 'hello'} |
493 let l = getcompletion('', 'function') | 499 let l = getcompletion('', 'function') |
494 let l = filter(l, {i, v -> v =~ 'lambda'}) | 500 let l = filter(l, {i, v -> v =~ 'lambda'}) |
495 call assert_equal([], l) | 501 call assert_equal([], l) |