From 9a1675b065394734ddaef91a314896028e2b1d46 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Wed, 26 Apr 2017 15:28:10 +0200 Subject: floats: implement floating windows Co-Author: Dongdong Zhou --- src/nvim/message.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/nvim/message.c') diff --git a/src/nvim/message.c b/src/nvim/message.c index b22508c23f..abe9c25bb8 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -2777,9 +2777,11 @@ void msg_ext_flush_showmode(void) { // Showmode messages doesn't interrupt normal message flow, so we use // separate event. Still reuse the same chunking logic, for simplicity. - msg_ext_emit_chunk(); - ui_call_msg_showmode(msg_ext_chunks); - msg_ext_chunks = (Array)ARRAY_DICT_INIT; + if (ui_has(kUIMessages)) { + msg_ext_emit_chunk(); + ui_call_msg_showmode(msg_ext_chunks); + msg_ext_chunks = (Array)ARRAY_DICT_INIT; + } } void msg_ext_clear(bool force) -- cgit