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>.
The current
<expr>
mapping does not work as expected becausefileselect#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>
.