Fix regression in opening the file at point
This commit is contained in:
parent
61f91e2464
commit
f286ce396d
2
sxiv.el
2
sxiv.el
|
@ -127,7 +127,7 @@ required for `dired-mode' buffers."
|
||||||
(image-at-point (and path-at-point
|
(image-at-point (and path-at-point
|
||||||
;; REVIEW - also check if file is an image?
|
;; REVIEW - also check if file is an image?
|
||||||
(file-regular-p path-at-point)
|
(file-regular-p path-at-point)
|
||||||
(file-relative-name path-at-point)))
|
path-at-point))
|
||||||
(index (when image-at-point
|
(index (when image-at-point
|
||||||
(--find-index (equal image-at-point it) paths))))
|
(--find-index (equal image-at-point it) paths))))
|
||||||
(when index (1+ index))))
|
(when index (1+ index))))
|
||||||
|
|
Reference in New Issue