Skip to content

Commit 1e2c801

Browse files
committed
Protect alias functions from final slash.
1 parent 823addd commit 1e2c801

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pythonic.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
pythonic-directory-aliases)))
9191
(if (null alias-tuple)
9292
path
93-
(concat (cadr alias-tuple)
93+
(f-join (cadr alias-tuple)
9494
(substring path (length (car alias-tuple)))))))
9595

9696
(defun pythonic-unaliased-path (alias)
@@ -102,7 +102,7 @@
102102
pythonic-directory-aliases)))
103103
(if (null alias-tuple)
104104
alias
105-
(concat (car alias-tuple)
105+
(f-join (car alias-tuple)
106106
(substring alias (min (length (cadr alias-tuple))
107107
(length alias)))))))
108108

0 commit comments

Comments
 (0)