From 2f698a53d784d2df26da7354739a90065697c0fd Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 26 Jan 2014 23:02:31 +0100 Subject: Only add status arrow after a command --- eshell-fringe-status.el | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/eshell-fringe-status.el b/eshell-fringe-status.el index 5cde3a8..3d9e71a 100644 --- a/eshell-fringe-status.el +++ b/eshell-fringe-status.el @@ -90,14 +90,15 @@ disabling the mode." This indication is shown as a bitmap in the left fringe of the window." - (save-excursion - (beginning-of-line) - (insert - (propertize " " 'display - `((left-fringe efs--arrow-bitmap - ,(if (zerop eshell-last-command-status) - 'eshell-fringe-status-success - 'eshell-fringe-status-failure))))))) + (when eshell-last-command-name + (save-excursion + (beginning-of-line) + (let ((face (if (zerop eshell-last-command-status) + 'eshell-fringe-status-success + 'eshell-fringe-status-failure))) + (insert + (propertize " " 'display + `((left-fringe efs--arrow-bitmap ,face)))))))) ;;;###autoload (define-minor-mode eshell-fringe-status-mode -- cgit v1.2.3-54-g00ecf