aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-11-06 22:33:41 +0800
committerjdhao <jdhao@hotmail.com>2020-11-06 22:33:41 +0800
commit94561247a95f8818a17401a624e05b790b5b5c71 (patch)
tree5de05dad7a6d3c731c29bc32d05e6f469a8a28b3 /core
parent114b3b9e4502cb7f9587d14f7e5df06d3ab938e4 (diff)
Fix the issue that inccommand breaks one-line if-else statement
See also https://github.com/neovim/neovim/issues/8796
Diffstat (limited to 'core')
-rw-r--r--core/autocommands.vim4
1 files changed, 3 insertions, 1 deletions
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