From cba5674b449dd8e3484da04fce1a3ea68bf5c344 Mon Sep 17 00:00:00 2001 From: faster-mo Date: Wed, 28 Feb 2018 15:46:51 +0800 Subject: [PATCH] fix bug. not working in insert mode when popupmenu already close. --- autoload/acp.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autoload/acp.vim b/autoload/acp.vim index f1fed65..fe5dcb4 100644 --- a/autoload/acp.vim +++ b/autoload/acp.vim @@ -268,7 +268,10 @@ function acp#onBs() \ [matchstr(s:getCurrentText(), '.*\ze.')]) return "\" endif - return "\\" + if pumvisible() + return "\\" + endif + return "\" endfunction " }}}1