aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Hållberg <gustav@virtutech.com>2009-12-06 20:30:43 +0100
committerGustav Hållberg <gustav@virtutech.com>2009-12-06 20:30:43 +0100
commit480472153643878c1cd4b8ca37dbfc56fef63ec6 (patch)
tree36f7bc0fbbd4cf0178c5dbab38d7c0dbd08e1f1c
parentda30db2adfb74c19189b7d9ae7658a0a799a3945 (diff)
downloadstgit-480472153643878c1cd4b8ca37dbfc56fef63ec6.tar.gz
stgit.el: Repair how patches with empty descriptions are shown
Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
-rw-r--r--contrib/stgit.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/stgit.el b/contrib/stgit.el
index 3ebeb72..f4b3aa7 100644
--- a/contrib/stgit.el
+++ b/contrib/stgit.el
@@ -291,8 +291,10 @@ A newline is appended."
?e (if (stgit-patch->empty patch) "(empty) " "")
?d (propertize (or (stgit-patch->desc patch) "")
'face 'stgit-description-face)
- ?D (propertize (or (stgit-patch->desc patch)
- (stgit-patch-display-name patch))
+ ?D (propertize (let ((desc (stgit-patch->desc patch)))
+ (if (zerop (length desc))
+ (stgit-patch-display-name patch)
+ desc))
'face face)))
(text (format-spec fmt spec)))