el/dot-emacs.el: Fix the eshell prompt algorithm.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 11 Nov 2010 14:13:49 +0000 (14:13 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 11 Nov 2010 14:13:49 +0000 (14:13 +0000)
Misplaced parenthesis broke it.

el/dot-emacs.el

index c51803b..3b6d3b5 100644 (file)
@@ -2139,8 +2139,8 @@ strip numbers instead."
                   (home (expand-file-name "~")) (nhome (length home)))
              (if (and (>= npwd nhome)
                       (or (= nhome npwd)
-                          (= (elt pwd nhome) ?/)
-                      (string= (substring pwd 0 nhome) home)))
+                          (= (elt pwd nhome) ?/))
+                      (string= (substring pwd 0 nhome) home))
                  (concat "~" (substring pwd (length home)))
                pwd))
            right)))