~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2c49e08
)
el/dot-emacs.el: Fix the eshell prompt algorithm.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 11 Nov 2010 14:13:49 +0000
(14:13 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Thu, 11 Nov 2010 14:13:49 +0000
(14:13 +0000)
Misplaced parenthesis broke it.
el/dot-emacs.el
patch
|
blob
|
blame
|
history
diff --git
a/el/dot-emacs.el
b/el/dot-emacs.el
index
c51803b
..
3b6d3b5
100644
(file)
--- a/
el/dot-emacs.el
+++ b/
el/dot-emacs.el
@@
-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)))