commit 84cf268927073a8e22fbab7849fc8c3407658fbe
parent f9b2c597b057e0e17cd98f782797ee1596371a52
Author: Tomas Hlavaty <tom@logand.com>
Date: Sat, 13 Jun 2020 21:22:09 +0200
handle start and end of dired buffer properly
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/emacs-framebuffer.el b/emacs-framebuffer.el
@@ -205,7 +205,8 @@
(defun framebuffer-dired-image-p ()
(let ((f (dired-file-name-at-point)))
- (and (not (file-directory-p f))
+ (and f
+ (not (file-directory-p f))
(string-match
"jpe?g\\|JPE?G\\|png\\|PNG\\|bmp\\|BMP\\|gif\\|GIF\\|tiff?\\|TIFF?\\|ppm\\|PPM\\|pnm\\|PNM\\|xpm\\|XPM"
(or (file-name-extension f) "")))))