Skip to content

Commit

Permalink
Always expand relative paths. Fixes #333
Browse files Browse the repository at this point in the history
  • Loading branch information
nickg committed Oct 15, 2020
1 parent fbbe6b0 commit 05f3b09
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions dumb-jump.el
Original file line number Diff line number Diff line change
Expand Up @@ -2668,16 +2668,10 @@ searcher symbol."
nil)
((and parts line-num-raw)
(if (= (length parts) 2)
(list (let ((path (expand-file-name (nth 0 parts))))
(if (file-name-absolute-p (nth 0 parts))
path
(file-relative-name path)))
(list (expand-file-name (nth 0 parts))
(nth 1 line-num-raw) (nth 1 parts))
; this case is when they are searching a particular file...
(list (let ((path (expand-file-name cur-file)))
(if (file-name-absolute-p cur-file)
path
(file-relative-name path)))
(list (expand-file-name cur-file)
(nth 1 line-num-raw) (nth 0 parts)))))))

(defun dumb-jump-parse-response-lines (parsed cur-file cur-line-num)
Expand Down

0 comments on commit 05f3b09

Please sign in to comment.