Shougo / unite.vim

:dragon: Unite and create user interfaces
http://www.vim.org/scripts/script.php?script_id=3396
Other
2.85k stars 223 forks source link

Sorter Selecta failure #799

Closed JCavallo closed 9 years ago

JCavallo commented 9 years ago

I got a problem using sorter_selecta on a grep source. When entering "!foo" to filter out lines matching "foo", the filter crashed [0].

I tracked it down to this line [1] which caused an "Undefined variable : 'Infinity'" error when score is 0.

OS : Linux Mint 17 Vim : 7.4.537

I tried to find a way to consistently reproduce the bug, but it seems to involve the cache settings, and I could not narrow it down enough to post it. Let me know if you want to know some specific settings in my vimrc !

[0]

[1] https://github.com/Shougo/unite.vim/blob/master/autoload/unite/filters/sorter_selecta.vim#L79

JCavallo commented 9 years ago

Thank you for the quick fix ! And for all your work on Unite, which is awesome !