Skip to content

Commit

Permalink
Abbreviate file name in correct place when loading file
Browse files Browse the repository at this point in the history
Part of #586
  • Loading branch information
lionel- committed Jul 8, 2018
1 parent a9e4a08 commit 3a8169e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lisp/ess-inf.el
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,7 @@ type of the region."
(file (if ess-microsoft-p
(ess-replace-in-string file "[\\]" "/")
file)))
file))
(abbreviate-file-name file)))

(defun ess-load-file--normalise-buffer (file)
(when (ess-check-source file)
Expand All @@ -1325,7 +1325,7 @@ This handles Tramp when working on a remote."
(buffer-file-name))
(expand-file-name
(read-file-name "Load source file: " nil nil t)))))
(ess-load-file--normalise-buffer (abbreviate-file-name filename))
(ess-load-file--normalise-buffer filename)
;; Pop up an inferior window
(save-selected-window
(ess-switch-to-ESS t))
Expand Down

0 comments on commit 3a8169e

Please sign in to comment.