ctrlpvim / ctrlp.vim

Active fork of kien/ctrlp.vim—Fuzzy file, buffer, mru, tag, etc finder.
ctrlpvim.github.com/ctrlp.vim
Other
5.55k stars 260 forks source link

"Argument must be positive: cmdheight=0" #611

Closed nedbat closed 1 year ago

nedbat commented 1 year ago

I am using the latest code, and when switching files, I get:

Error detected while processing function <SNR>141_AcceptSelection[27]..ctrlp#acceptfile[17]..<SNR>141_PrtExit[4]..<SNR>141_Close:
line    1:
E487: Argument must be positive: cmdheight=0

I'm on MacVim:

VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Jul 25 2022 08:23:03)
macOS version - x86_64
Included patches: 1-65
nedbat commented 1 year ago

Is it an effect of pull request #610 ?

mattn commented 1 year ago

Thanks your report. fixed.

nedbat commented 1 year ago

Hmm, I updated to get that commit, and still see the error message.

nedbat commented 1 year ago

Which makes sense, since the new code makes the old change if vim is new enough, and I am running a new vim. Was the condition meant to be inverted?

mattn commented 1 year ago
echo has('patch-9.0-0015')

what result do you get?

nedbat commented 1 year ago

1

mattn commented 1 year ago

Ah, sorry.

echo has('patch-9.0.0015')

Please do again.

mattn commented 1 year ago

I fixed in last change. please update.

nedbat commented 1 year ago

Yay, it works! <3