From 5801e19944ce101762621feb7f1c0a4047897d59 Mon Sep 17 00:00:00 2001 Message-Id: <5801e19944ce101762621feb7f1c0a4047897d59.1717676346.git.mdw@distorted.org.uk> From: Mark Wooding Date: Thu, 11 Nov 2010 14:13:49 +0000 Subject: [PATCH] el/dot-emacs.el: Fix the eshell prompt algorithm. Organization: Straylight/Edgeware From: Mark Wooding Misplaced parenthesis broke it. --- el/dot-emacs.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/el/dot-emacs.el b/el/dot-emacs.el index c51803b..3b6d3b5 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -2139,8 +2139,8 @@ (defun mdw-eshell-prompt () (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))) -- [mdw]