Fix regression in opening the file at point

This commit is contained in:
contrapunctus 2022-05-11 23:35:07 +05:30
parent 61f91e2464
commit f286ce396d
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ required for `dired-mode' buffers."
(image-at-point (and path-at-point
;; REVIEW - also check if file is an image?
(file-regular-p path-at-point)
(file-relative-name path-at-point)))
path-at-point))
(index (when image-at-point
(--find-index (equal image-at-point it) paths))))
(when index (1+ index))))