Shougo / ddu-ui-ff

Fuzzy finder UI for ddu.vim
MIT License
55 stars 26 forks source link

Fix preview #87

Closed uga-rosa closed 1 year ago

uga-rosa commented 1 year ago

0 is not nullish, so bufferPath is able to be 0. But 0 is falsy, so I can't get to fn.bufexists().

Also, even if you could get there, bufexists(0) would not be the result you want. 0 indicates ddu buffer.

Shougo commented 1 year ago

I don't understand.

uga-rosa commented 1 year ago

The essential problem is that the ddu.vim set item.action.bufNr to 0.

Shougo commented 1 year ago

OK. I get the reason.