punassuming / ranger.el

Bringing the goodness of ranger to dired!
699 stars 52 forks source link

Ranger doesn't close with delete-frame (emacsclient) #157

Open jacklincoln opened 7 years ago

jacklincoln commented 7 years ago

When using emacsclient if you delete the frame with ranger open, ranger doesn't close and upon opening a new frame there are left over buffers and ranger doesnt work properly.

Perhaps an uncommon scenario but this solves it for me:

(add-hook 'delete-frame-functions (lambda (frame) (ranger-close)))

punassuming commented 7 years ago

Will look into, thanks for creating the issue.