mirror of
https://github.com/vale981/ement.el
synced 2025-03-05 09:21:37 -05:00
Fix: (ement-room-header-line-format) Handle empty room names/topics
This commit is contained in:
parent
0e58285e8b
commit
67aed182ac
1 changed files with 4 additions and 2 deletions
|
@ -159,9 +159,11 @@ normal text.")
|
|||
|
||||
(defcustom ement-room-header-line-format
|
||||
;; TODO: Show in new screenshots.
|
||||
'(:eval (concat " " (propertize (ement-room-display-name ement-room)
|
||||
'(:eval (concat " " (propertize (or (ement-room-display-name ement-room)
|
||||
"[no room name]")
|
||||
'face 'ement-room-name)
|
||||
": " (propertize (ement-room-topic ement-room)
|
||||
": " (propertize (or (ement-room-topic ement-room)
|
||||
"[no topic]")
|
||||
;; Also set help-echo in case the topic is too wide to fit.
|
||||
'help-echo (ement-room-topic ement-room))))
|
||||
"Header line format for room buffers.
|
||||
|
|
Loading…
Add table
Reference in a new issue