branch: elpa/telephone-line
commit 797f257642557c4d85bdcb8098078cc40914fbb0
Author: Gerry Agbobada <[email protected]>
Commit: GitHub <[email protected]>

    Wrap the segment in bound-and-true-p
---
 telephone-line-segments.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/telephone-line-segments.el b/telephone-line-segments.el
index cd39b6d9a2..d667cd5335 100644
--- a/telephone-line-segments.el
+++ b/telephone-line-segments.el
@@ -267,7 +267,8 @@ Configure the face group telephone-line-evil to change the 
colors per-mode."
 
 (telephone-line-defsegment telephone-line-flymake-segment ()
   "Wraps `flymake-mode' mode-line information in a telephone-line segment."
-  (telephone-line-raw flymake--mode-line-format t))
+  (when (bound-and-true-p flymake-mode)
+    (telephone-line-raw flymake--mode-line-format t)))
 
 (telephone-line-defsegment telephone-line-flycheck-segment ()
   "Displays current checker state."

Reply via email to