Skip to content

Commit

Permalink
Merge pull request ctrlpvim#610 from hashue/feat/support-cmdheight
Browse files Browse the repository at this point in the history
fix not display cmdwin when `cmdheight = 0`
  • Loading branch information
mattn authored Aug 2, 2022
2 parents 3ce448c + 900f086 commit 379e0bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autoload/ctrlp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 379e0bd

Please sign in to comment.