aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authormattn2022-08-02 19:20:46 +0900
committerGitHub2022-08-02 19:20:46 +0900
commit379e0bd855484b740b29a77a1209fda345289d6b (patch)
tree0ddbab4a3e90748011564a7aa8181fd5414c8fcd
parent3ce448c9687ae96dea0caf4da388ecd8d9072f72 (diff)
parent900f086774f9eb1131165ba570fea87067bc11b8 (diff)
downloadctrlp.vim-379e0bd855484b740b29a77a1209fda345289d6b.tar.gz

Merge pull request #610 from hashue/feat/support-cmdheight

fix not display cmdwin when cmdheight = 0

-rw-r--r--autoload/ctrlp.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim
index d4445c8..51047e0 100644
--- a/autoload/ctrlp.vim
+++ b/autoload/ctrlp.vim
@@ -330,6 +330,7 @@ fu! s:Open()
endf
fu! s:Close()
+ if &cmdheight != 0 | set cmdheight=0 |en
cal s:async_glob_abort(0)
cal s:buffunc(0)
if winnr('$') == 1
@@ -2845,6 +2846,8 @@ fu! ctrlp#init(type, ...)
if shouldExitSingle && s:ExitIfSingleCandidate()
retu 0
en
+
+ if &cmdheight == 0 | set cmdheight=1 | en
cal s:BuildPrompt(1)
if s:keyloop | cal s:KeyLoop() | en
retu 1