From 480472153643878c1cd4b8ca37dbfc56fef63ec6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gustav=20H=C3=A5llberg?= Date: Sun, 6 Dec 2009 20:30:43 +0100 Subject: [PATCH] stgit.el: Repair how patches with empty descriptions are shown MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Gustav HÃ¥llberg --- contrib/stgit.el | 6 ++++-- 1 file 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))) -- 2.11.0