aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-01-28 07:55:10 +0800
committerGitHub <noreply@github.com>2022-01-28 07:55:10 +0800
commit69f37197c094c71072c3262fefb2ce9f09619384 (patch)
tree572c8fa011e0d1ffd7f2bf16e85fbfbb01639d14 /src
parent815aa9f6425b34f1857a5b4213dff0dce6dda2b9 (diff)
downloadrneovim-69f37197c094c71072c3262fefb2ce9f09619384.tar.gz
rneovim-69f37197c094c71072c3262fefb2ce9f09619384.tar.bz2
rneovim-69f37197c094c71072c3262fefb2ce9f09619384.zip
fix(completion): update submode message when selecting from API (#17022)
Diffstat (limited to 'src')
-rw-r--r--src/nvim/edit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index b7656230dd..095fa14752 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -1093,6 +1093,8 @@ check_pum:
// equivalent to selecting the item with a typed key.
if (pum_want.active) {
if (pum_visible()) {
+ // Set this to NULL so that ins_complete() will update the message.
+ edit_submode_extra = NULL;
insert_do_complete(s);
if (pum_want.finish) {
// accept the item and stop completion