diff options
| author | Yasuhiro Matsumoto | 2022-08-02 22:03:23 +0900 |
|---|---|---|
| committer | Yasuhiro Matsumoto | 2022-08-02 22:03:23 +0900 |
| commit | 5a7fba9997b9bfbc91db9b9aab8cdd9cf0aadd40 (patch) | |
| tree | 156c23569655dfa65b525b8ea31ef72d986c2c7d | |
| parent | 379e0bd855484b740b29a77a1209fda345289d6b (diff) | |
| download | ctrlp.vim-5a7fba9997b9bfbc91db9b9aab8cdd9cf0aadd40.tar.gz | |
fixes #611
| -rw-r--r-- | autoload/ctrlp.vim | 4 |
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 |