aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-28 05:19:38 +0800
committerGitHub <noreply@github.com>2022-07-28 05:19:38 +0800
commit7d9e68669c4c379b77e76eb02a1a4a7c2cceafd7 (patch)
treea7bef6074b76b42424b885eefb200e74448cc073 /src/nvim/testdir
parentb6b9f46041a7aa4552794926b40325015ccfae50 (diff)
downloadrneovim-7d9e68669c4c379b77e76eb02a1a4a7c2cceafd7.tar.gz
rneovim-7d9e68669c4c379b77e76eb02a1a4a7c2cceafd7.tar.bz2
rneovim-7d9e68669c4c379b77e76eb02a1a4a7c2cceafd7.zip
vim-patch:9.0.0092: plugins cannot change v:completed_item (#19542)
Problem: Plugins cannot change v:completed_item. Solution: Make v:completed_item writeable. (Shougo Matsushita, closes vim/vim#10801) https://github.com/vim/vim/commit/61021aa318ca4c4a6b0182ee93388b2e9b5eefba
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_ins_complete.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_ins_complete.vim b/src/nvim/testdir/test_ins_complete.vim
index 1b7ebaf8e2..362c58aa31 100644
--- a/src/nvim/testdir/test_ins_complete.vim
+++ b/src/nvim/testdir/test_ins_complete.vim
@@ -336,6 +336,19 @@ func Test_CompleteDone_undo()
au! CompleteDone
endfunc
+func Test_CompleteDone_modify()
+ let value = {
+ \ 'word': '',
+ \ 'abbr': '',
+ \ 'menu': '',
+ \ 'info': '',
+ \ 'kind': '',
+ \ 'user_data': '',
+ \ }
+ let v:completed_item = value
+ call assert_equal(v:completed_item, value)
+endfunc
+
func CompleteTest(findstart, query)
if a:findstart
return col('.')