Wilfred / ag.el

An Emacs frontend to The Silver Searcher
http://agel.readthedocs.org/en/latest/
525 stars 61 forks source link

Fix removal of default directory in dired filter #77

Closed Fuco1 closed 9 years ago

Fuco1 commented 9 years ago

In case default-directory is / or some substring occuring later in the file name, this will incorrectly be removed in the filter. We need to only remove it when it is preceeded by space (i.e. at the start of the "filename" column). Granted, this also isn't completely fool-proof, but a situation where that could be a problem will hardly ever occur.

As of now I don't know a better solution.