branch: elpa/telephone-line
commit 00600d46c9321a857c4be8f9da4c276f357158d4
Merge: ae636f7ca2 de93becc18
Author: Daniel Bordak <[email protected]>
Commit: Daniel Bordak <[email protected]>
Merge branch 'master' of github.com:dbordak/telephone-line
---
telephone-line-segments.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/telephone-line-segments.el b/telephone-line-segments.el
index b7b176ac1c..ebc6e71f19 100644
--- a/telephone-line-segments.el
+++ b/telephone-line-segments.el
@@ -79,8 +79,9 @@ mouse-3: Toggle minor modes"
'mouse-2 #'mode-line-widen))))
(telephone-line-defsegment* telephone-line-erc-modified-channels-segment
- (s-with erc-modified-channels-object
- s-trim (s-chop-suffix "]") (s-chop-prefix "[")))
+ (when (boundp 'erc-modified-channels-object)
+ (s-with erc-modified-channels-object
+ s-trim (s-chop-suffix "]") (s-chop-prefix "["))))
(eval-after-load 'evil
'(telephone-line-defsegment* telephone-line-evil-tag-segment