branch: externals/breadcrumb
commit ed48749262eeb3912a533f9e3fcfeb2b35fa8601
Author: João Távora <[email protected]>
Commit: João Távora <[email protected]>
Per #27: Don't break mode-line-format-right-align for others
Jen-Chieh Shen alerted me to this. Sorry about that!
* breadcrumb.el (mode--line-format-right-align): Don't break
function completely for others!
---
breadcrumb.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/breadcrumb.el b/breadcrumb.el
index f14e1a215b..f1ff4b0c1d 100644
--- a/breadcrumb.el
+++ b/breadcrumb.el
@@ -518,8 +518,7 @@ it with `breadcrumb-opinionated-mlf'."
(advice-add 'mode--line-format-right-align :filter-return
(lambda (r)
- (when bc-opinionated-mode
- (propertize r 'face 'default)))
+ (if bc-opinionated-mode (propertize r 'face 'default) r))
'((name . bc-opinionated-mlf)))
(provide 'breadcrumb)