Skip to content

Commit fa915cf

Browse files
author
Hasu
committed
feat: support cmdheight=0
1 parent 3ce448c commit fa915cf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

autoload/ctrlp.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ fu! s:Open()
330330
endf
331331

332332
fu! s:Close()
333+
if &cmdheight != 0 | set cmdheight=0 |en
333334
cal s:async_glob_abort(0)
334335
cal s:buffunc(0)
335336
if winnr('$') == 1
@@ -1269,6 +1270,7 @@ fu! ctrlp#acceptfile(...)
12691270
cal call('s:openfile', args)
12701271
let &swb = swb
12711272
en
1273+
if &cmdheight != 0 | set cmdheight=0 |en
12721274
endf
12731275

12741276
fu! s:SpecInputs(str)
@@ -2845,6 +2847,8 @@ fu! ctrlp#init(type, ...)
28452847
if shouldExitSingle && s:ExitIfSingleCandidate()
28462848
retu 0
28472849
en
2850+
2851+
if &cmdheight == 0 | set cmdheight=1 | en
28482852
cal s:BuildPrompt(1)
28492853
if s:keyloop | cal s:KeyLoop() | en
28502854
retu 1

0 commit comments

Comments
 (0)