Closed tzhouhc closed 4 years ago
Oh also in case someone else bumps into the same issue and doesn't want to modify code -- updating your python neovim bindings might help (if you are using neovim, that is):
pip3 install pynvim neovim
I reverted my changes to fader.py
and vimade runs just fine in py3 mode, so I'm set! Feel free to close! Thanks for the great work!
thanks for the detailed report and finding the issue -- should be all set now for python 2 as well
Behavior:
Sometimes when using fzf's list view, instead of it working I would get this
I don't know what is needed to trigger this issue, but --
Some print() debugging shows that the issue from line 476 in
fader.py
is that, sometimesmCol
is a float. In my case, I got an '1.0' somehow. Casting toint(mCol)
makes it work.Following the trace up, it seems like line 419 is the culprit: in python2.7.16, math.floor always returns a float, even if fed an int, which then borks the array index. Adding an int casting fixes the issue for myself:
I'd like to think that even without a setup to reproduce this issue, this is a safe-ish casting to do? :)