Skip to content

Commit

Permalink
Fixed switch to filename
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Jan 24, 2021
1 parent 0095874 commit c9a2952
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helm-searcher.el
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@ This is uses by both replace in file and project.")
"Do action with CAND."
(let* ((project-dir (helm-searcher--project-path))
(data (helm-searcher--candidate-to-plist cand))
(file (plist-get data :file))
(file (plist-get data :file)) (filename (f-filename file))
(pos (plist-get data :start))
(ln (plist-get data :line-number))
(col (plist-get data :column)))
(when project-dir (setq file (f-join project-dir file)))
(if (file-exists-p file) (find-file file) (switch-to-buffer file))
(if (file-exists-p file) (find-file file) (switch-to-buffer filename))
(cl-case helm-searcher-display-info
(position
(setq pos (string-to-number pos))
Expand Down

0 comments on commit c9a2952

Please sign in to comment.