natecraddock / zf

a commandline fuzzy finder and zig module designed for filtering filepaths
MIT License
469 stars 17 forks source link

Highlights incorrect when a candidate ends in a `/` #18

Closed natecraddock closed 1 year ago

natecraddock commented 1 year ago
> slash
wow/this/slash/
          -----

the highlights are off-by-one. I think this is due to the implementation of basename in Zig.

Also this only happens when the last path component is the first part of the match. Searching for sslash correctly highlights s/slash.