From 9654a5bf2ebae01c96a37db6ecc87eac4ec4fd7e Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev <107392-klay@users.noreply.gitlab.com> Date: Thu, 6 Jun 2019 09:47:25 +0000 Subject: [PATCH] Fix unbound variable access --- mood-line.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mood-line.el b/mood-line.el index dacccb2..525ef43 100644 --- a/mood-line.el +++ b/mood-line.el @@ -208,12 +208,12 @@ (defun mood-line-segment-anzu () "Displays color-coded anzu status information in the mode-line (if available)." - (when anzu--state + (when (and (boundp 'anzu--state) anzu--state) (concat (anzu--update-mode-line) " "))) (defun mood-line-segment-multiple-cursors () "Displays the number of active multiple-cursors in the mode-line (if available)." - (when multiple-cursors-mode + (when (and (boundp 'multiple-cursors-mode) multiple-cursors-mode) (concat "MC:" (format #("%d" 0 2 (face font-lock-warning-face)) (mc/num-cursors)) " ")))