From 94561247a95f8818a17401a624e05b790b5b5c71 Mon Sep 17 00:00:00 2001 From: jdhao Date: Fri, 6 Nov 2020 22:33:41 +0800 Subject: [PATCH] Fix the issue that inccommand breaks one-line if-else statement See also https://github.com/neovim/neovim/issues/8796 --- core/autocommands.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/autocommands.vim b/core/autocommands.vim index a64770d..57b07cb 100644 --- a/core/autocommands.vim +++ b/core/autocommands.vim @@ -67,7 +67,9 @@ augroup END " Clear cmd line message function! s:empty_message(timer) - if mode() ==# 'n' | echo '' | endif + if mode() ==# 'n' + echo '' + endif endfunction augroup cmd_msg_cls