Yggdroot / LeaderF

An efficient fuzzy finder that helps to locate files, buffers, mrus, gtags, etc. on the fly for both vim and neovim.
Apache License 2.0
2.13k stars 180 forks source link

fix bugs in bufExpl.py and rgExpl.py #984

Closed jiangyinzuo closed 1 year ago

jiangyinzuo commented 1 year ago

When using

:Leaderf buffer --nameOnly --auto-preview

if the input does not match any buffer, string variable line is empty and the method _previewInPopup will raise a ValueError.

image
jiangyinzuo commented 1 year ago

When using

:Leaderf rg --nameOnly --auto-preview

if the input does not match any buffer, variable m is None and the method should return (None, None).

image
Yggdroot commented 1 year ago

Thanks.