aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorYasuhiro Matsumoto2022-08-02 22:03:23 +0900
committerYasuhiro Matsumoto2022-08-02 22:03:23 +0900
commit5a7fba9997b9bfbc91db9b9aab8cdd9cf0aadd40 (patch)
tree156c23569655dfa65b525b8ea31ef72d986c2c7d
parent379e0bd855484b740b29a77a1209fda345289d6b (diff)
downloadctrlp.vim-5a7fba9997b9bfbc91db9b9aab8cdd9cf0aadd40.tar.gz

fixes #611

-rw-r--r--autoload/ctrlp.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim
index 51047e0..4c7f97b 100644
--- a/autoload/ctrlp.vim
+++ b/autoload/ctrlp.vim
@@ -330,7 +330,7 @@ fu! s:Open()
endf
fu! s:Close()
- if &cmdheight != 0 | set cmdheight=0 |en
+ if has('patch-9.0-0015') && &cmdheight != 0 | set cmdheight=0 |en
cal s:async_glob_abort(0)
cal s:buffunc(0)
if winnr('$') == 1
@@ -2847,7 +2847,7 @@ fu! ctrlp#init(type, ...)
retu 0
en
- if &cmdheight == 0 | set cmdheight=1 | en
+ if has('patch-9.0-0015') && &cmdheight == 0 | set cmdheight=1 | en
cal s:BuildPrompt(1)
if s:keyloop | cal s:KeyLoop() | en
retu 1