yegappan / fileselect

File Selector Vim Plugin
BSD 2-Clause "Simplified" License
18 stars 2 forks source link

fix <expr> mapping #8

Closed lacygoill closed 3 years ago

lacygoill commented 3 years ago

The current <expr> mapping does not work as expected because fileselect#toggle() returns the default value 0. To work as expected, it should return an empty string. However, even with an empty string, the mapping would suffer from another bug. I think the solution is to make the function return <Ignore>.