]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix problem in tramp-handle-substitute-in-file-name
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 26 Feb 2018 15:23:21 +0000 (16:23 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Tue, 27 Feb 2018 07:31:18 +0000 (08:31 +0100)
* lisp/net/tramp.el (tramp-handle-substitute-in-file-name): Concat "/"
only for local file "~".

lisp/net/tramp.el

index 618d026abde56c7cbfe36d2756205d1f3bda9acb..bae039dba13933d8e5dc4e58ede89fea920bee80 100644 (file)
@@ -3564,7 +3564,7 @@ support symbolic links."
                  (concat (file-remote-p filename)
                          (substitute-in-file-name localname))))))
       ;; "/m:h:~" does not work for completion.  We use "/m:h:~/".
-      (if (string-match "~$" filename)
+      (if (string-match "^~$" localname)
          (concat filename "/")
        filename))))