aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorglepnir <glephunter@gmail.com>2024-12-05 17:49:39 +0800
committerGitHub <noreply@github.com>2024-12-05 17:49:39 +0800
commit2f5e7cbac49ed2fde571c5bf85619afec624f8e8 (patch)
tree83a34f6938347bca119ec569e8d5602abd2a7711 /runtime
parent540def7d2c1aa97d18b08bd7dc234442a7ab4757 (diff)
downloadrneovim-2f5e7cbac49ed2fde571c5bf85619afec624f8e8.tar.gz
rneovim-2f5e7cbac49ed2fde571c5bf85619afec624f8e8.tar.bz2
rneovim-2f5e7cbac49ed2fde571c5bf85619afec624f8e8.zip
vim-patch:9.1.0905: Missing information in CompleteDone event (#31455)
Problem: Missing information in CompleteDone event Solution: add complete_word and complete_type to v:event dict (glepnir) closes: vim/vim#16153 https://github.com/vim/vim/commit/1c5a120a701fcf558617c4e70b5a447778f0e51d
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/autocmd.txt4
-rw-r--r--runtime/doc/vvars.txt2
-rw-r--r--runtime/lua/vim/_meta/vvars.lua2
3 files changed, 8 insertions, 0 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt
index 998ef5e9f3..c094281154 100644
--- a/runtime/doc/autocmd.txt
+++ b/runtime/doc/autocmd.txt
@@ -463,6 +463,10 @@ CompleteDone After Insert mode completion is done. Either
|v:completed_item| gives the completed item.
Sets these |v:event| keys:
+ complete_word The word that was
+ selected, empty if
+ abandoned complete.
+ complete_type |complete_info_mode|
reason Reason for completion being
done. Can be one of:
- "accept": completion was
diff --git a/runtime/doc/vvars.txt b/runtime/doc/vvars.txt
index 0c349c4e57..32f3b96269 100644
--- a/runtime/doc/vvars.txt
+++ b/runtime/doc/vvars.txt
@@ -189,6 +189,8 @@ v:event
changing window (or tab) on |DirChanged|.
status Job status or exit code, -1 means "unknown". |TermClose|
reason Reason for completion being done. |CompleteDone|
+ complete_word The word that was selected, empty if abandoned complete.
+ complete_type See |complete_info_mode|
*v:exception* *exception-variable*
v:exception
diff --git a/runtime/lua/vim/_meta/vvars.lua b/runtime/lua/vim/_meta/vvars.lua
index 8784fdbac9..264907109f 100644
--- a/runtime/lua/vim/_meta/vvars.lua
+++ b/runtime/lua/vim/_meta/vvars.lua
@@ -197,6 +197,8 @@ vim.v.errors = ...
--- changing window (or tab) on `DirChanged`.
--- status Job status or exit code, -1 means "unknown". `TermClose`
--- reason Reason for completion being done. `CompleteDone`
+--- complete_word The word that was selected, empty if abandoned complete.
+--- complete_type See `complete_info_mode`
--- @type any
vim.v.event = ...