emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/mct 6bd2457 03/70: Ensure that display-line-numbers-mod


From: ELPA Syncer
Subject: [elpa] externals/mct 6bd2457 03/70: Ensure that display-line-numbers-mode is bound
Date: Thu, 11 Nov 2021 03:57:40 -0500 (EST)

branch: externals/mct
commit 6bd2457cc7ad8a1656de16e51d2d7e00203341c2
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Ensure that display-line-numbers-mode is bound
    
    If display-line-numbers-mode hasn't been loaded yet, the variable
    isn't bound and would signal an error.
---
 mct.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mct.el b/mct.el
index 4590a92..820ce4a 100644
--- a/mct.el
+++ b/mct.el
@@ -470,7 +470,7 @@ minibuffer."
   "Show line numbers and select one of them."
   (with-current-buffer "*Completions*"
     (let ((mct-show-completion-line-numbers t))
-      (if display-line-numbers-mode
+      (if (bound-and-true-p display-line-numbers-mode)
           (mct-goto-line)
         (unwind-protect
             (progn



reply via email to

[Prev in Thread] Current Thread [Next in Thread]