Mercurial > vim
comparison src/testdir/test_ins_complete.vim @ 30015:adb0de8be4ce v9.0.0345
patch 9.0.0345: error message for list argument could be clearer
Commit: https://github.com/vim/vim/commit/d83392a43a48c566c0f3b76382a3648584dae32b
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 1 12:22:46 2022 +0100
patch 9.0.0345: error message for list argument could be clearer
Problem: Error message for list argument could be clearer.
Solution: Include the argument number. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/11027)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 01 Sep 2022 13:30:05 +0200 |
parents | aafac1ae89c7 |
children | 13b02c1ea0f7 |
comparison
equal
deleted
inserted
replaced
30014:3fb163e2ef6c | 30015:adb0de8be4ce |
---|---|
671 func Test_complete_func_error() | 671 func Test_complete_func_error() |
672 call assert_fails('call complete(1, ["a"])', 'E785:') | 672 call assert_fails('call complete(1, ["a"])', 'E785:') |
673 func ListColors() | 673 func ListColors() |
674 call complete(col('.'), "blue") | 674 call complete(col('.'), "blue") |
675 endfunc | 675 endfunc |
676 call assert_fails('exe "normal i\<C-R>=ListColors()\<CR>"', 'E474:') | 676 call assert_fails('exe "normal i\<C-R>=ListColors()\<CR>"', 'E1211:') |
677 func ListMonths() | 677 func ListMonths() |
678 call complete(col('.'), test_null_list()) | 678 call complete(col('.'), test_null_list()) |
679 endfunc | 679 endfunc |
680 call assert_fails('exe "normal i\<C-R>=ListMonths()\<CR>"', 'E474:') | 680 call assert_fails('exe "normal i\<C-R>=ListMonths()\<CR>"', 'E1298:') |
681 delfunc ListColors | 681 delfunc ListColors |
682 delfunc ListMonths | 682 delfunc ListMonths |
683 call assert_fails('call complete_info({})', 'E714:') | 683 call assert_fails('call complete_info({})', 'E1211:') |
684 call assert_equal([], complete_info(['items']).items) | 684 call assert_equal([], complete_info(['items']).items) |
685 endfunc | 685 endfunc |
686 | 686 |
687 " Test for recursively starting completion mode using complete() | 687 " Test for recursively starting completion mode using complete() |
688 func Test_recursive_complete_func() | 688 func Test_recursive_complete_func() |