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 e09e50e commit fdda44aCopy full SHA for fdda44a
ivy-file-preview.el
@@ -78,7 +78,7 @@
78
"Open the file path (FN).
79
POS can either be an integer or cons cell represent line number and columns."
80
(setq ivy-file-preview--selected-file fn)
81
- (find-file fn)
+ (if (file-exists-p fn) (find-file fn) (switch-to-buffer fn))
82
(cond ((consp pos)
83
(ivy-file-preview--goto-line (car pos))
84
(move-to-column (cdr pos)))
0 commit comments