bling / fzf.el

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

Prevent error when fzf-switch-buffer is called #68

Closed sanel closed 2 years ago

sanel commented 2 years ago

When fzf-switch-buffer is called, directory will be nil, causing Emacs to report error:

  error in process sentinel: concat: Wrong type argument: stringp, nil

This commit checks if directory is nil and ignore file-name-as-directory call in that case.

theaugy commented 2 years ago

+1. I was about to submit a similar PR, glad I checked first :)