bling / fzf.el

A front-end for fzf
GNU General Public License v3.0
366 stars 50 forks source link

Path is not stripped correctly when directory does not end with '/' #4

Closed jacobdufault closed 8 years ago

jacobdufault commented 8 years ago

If default-directory is set to /work/chrome/src, then files will fail to open because file will get set to /work/chrome/src/src/*. Setting default-directory to /work/chrome/src/ (notice the trailing slash) fixes things.

bling commented 8 years ago

we could put a check for the trailing slash, but directories in emacs should always end in a slash, otherwise bad things happen...