We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47a59cf commit f96314aCopy full SHA for f96314a
ivy-file-preview.el
@@ -259,7 +259,9 @@ FN is the file path. POS can either be one of the following type:
259
(when can-preview-p
260
(setq ln (ignore-errors (cl-parse-integer ln))
261
cl (ignore-errors (cl-parse-integer cl)))
262
- (when project-dir (setq fn (f-join project-dir fn)))
+ (cond ((and (string-match-p "/" fn) project-dir)
263
+ (setq fn (f-join project-dir fn)))
264
+ (t (setq fn (f-join default-directory fn))))
265
(ivy-file-preview--do-preview fn (if cl (cons ln cl) ln))))))
266
267
(defun ivy-file-preview--back-to-pos ()
0 commit comments