Mercurial > vim
comparison src/testdir/test_cmdline.vim @ 23598:a9433f834693 v8.2.2341
patch 8.2.2341: expresison command line completion incomplete after "g:"
Commit: https://github.com/vim/vim/commit/1bb4de5302ba038b9c59e845b6d735e87d5681d0
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 13 19:48:46 2021 +0100
patch 8.2.2341: expresison command line completion incomplete after "g:"
Problem: Expresison command line completion shows variables but not
functions after "g:". (Gary Johnson)
Solution: Prefix "g:" when needed to a global function.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 13 Jan 2021 20:00:05 +0100 |
parents | 7d6bffda5b6b |
children | 93f90f2ff4e9 |
comparison
equal
deleted
inserted
replaced
23597:000119fdb207 | 23598:a9433f834693 |
---|---|
617 func Test_cmdline_complete_user_func() | 617 func Test_cmdline_complete_user_func() |
618 call feedkeys(":func Test_cmdline_complete_user\<Tab>\<Home>\"\<cr>", 'tx') | 618 call feedkeys(":func Test_cmdline_complete_user\<Tab>\<Home>\"\<cr>", 'tx') |
619 call assert_match('"func Test_cmdline_complete_user', @:) | 619 call assert_match('"func Test_cmdline_complete_user', @:) |
620 call feedkeys(":func s:ScriptL\<Tab>\<Home>\"\<cr>", 'tx') | 620 call feedkeys(":func s:ScriptL\<Tab>\<Home>\"\<cr>", 'tx') |
621 call assert_match('"func <SNR>\d\+_ScriptLocalFunction', @:) | 621 call assert_match('"func <SNR>\d\+_ScriptLocalFunction', @:) |
622 | |
623 " g: prefix also works | |
624 call feedkeys(":echo g:Test_cmdline_complete_user_f\<Tab>\<Home>\"\<cr>", 'tx') | |
625 call assert_match('"echo g:Test_cmdline_complete_user_func', @:) | |
622 endfunc | 626 endfunc |
623 | 627 |
624 func Test_cmdline_complete_user_names() | 628 func Test_cmdline_complete_user_names() |
625 if has('unix') && executable('whoami') | 629 if has('unix') && executable('whoami') |
626 let whoami = systemlist('whoami')[0] | 630 let whoami = systemlist('whoami')[0] |