]> git.eshelyaron.com Git - emacs.git/commitdiff
(shell-replace-by-expanded-directory):
authorRichard M. Stallman <rms@gnu.org>
Fri, 10 May 2002 00:58:27 +0000 (00:58 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 10 May 2002 00:58:27 +0000 (00:58 +0000)
If there's already a / at the end, don't add one.

lisp/shell.el

index fb427aa9f72dc5e1cbc67c931ccffac5da09a604..0b2b7543218588cb00fafd029ec011b362022a3e 100644 (file)
@@ -993,7 +993,7 @@ Returns t if successful."
        (let ((stack (cons default-directory shell-dirstack))
              (index (cond ((looking-at "=-/?")
                            (length shell-dirstack))
-                          ((looking-at "=\\([0-9]+\\)")
+                          ((looking-at "=\\([0-9]+\\)/?")
                            (string-to-number
                             (buffer-substring
                              (match-beginning 1) (match-end 1)))))))