aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2025-02-24 00:08:26 +0200
committerGitHub <noreply@github.com>2025-02-23 14:08:26 -0800
commit268a3de0a7737155eb5ab1372a9ed76599751847 (patch)
tree19631b0c33913c785f10de98b2793d3b727b105e /runtime
parent07c5f41da3ad5a609e74da47685f430fcc4896fe (diff)
downloadrneovim-268a3de0a7737155eb5ab1372a9ed76599751847.tar.gz
rneovim-268a3de0a7737155eb5ab1372a9ed76599751847.tar.bz2
rneovim-268a3de0a7737155eb5ab1372a9ed76599751847.zip
feat(complete): CompleteDone reason "cancel", "discard" #32600
Problem: there is no way to distinguish between user's explicit completion stop/cancel and other automated reasons. Solution: update "cancel" reason to be set only on explicit CTRL-e, and set intentionally vague "discard" otherwise.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/autocmd.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt
index 3ffbdf310f..eaa1b608ce 100644
--- a/runtime/doc/autocmd.txt
+++ b/runtime/doc/autocmd.txt
@@ -470,11 +470,11 @@ CompleteDone After Insert mode completion is done. Either
reason Reason for completion being
done. Can be one of:
- "accept": completion was
- accepted using |complete_CTRL-Y|.
- - "cancel": completion was cancelled
- using |complete_CTRL-E|, pressing
- a non-keyword character, or
- triggering a new completion.
+ accepted by |complete_CTRL-Y|.
+ - "cancel": completion was
+ stopped by |complete_CTRL-E.
+ - "discard": completion was
+ ended for other reason.
*CursorHold*
CursorHold When the user doesn't press a key for the time