From 69f37197c094c71072c3262fefb2ce9f09619384 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 28 Jan 2022 07:55:10 +0800 Subject: fix(completion): update submode message when selecting from API (#17022) --- src/nvim/edit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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 -- cgit