punassuming / ranger.el

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

Fix ranger-next/prev-parent when there is no parent #185

Closed Miciah closed 4 years ago

Miciah commented 6 years ago

Fix ranger-next-parent/ranger-prev-parent when there is no parent

In a deer session or in a ranger session in the root directory, there is no parent directory. ranger-next-parent and ranger-prev-parent do not check for this condition. Consequently, pressing [ or ] would cause the following error in these contexts:

Wrong type argument: stringp, nil

This commit adds the needed check.