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

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

[elpa] externals/ivy-explorer e5148ba 21/25: Address changes according t


From: Stefan Monnier
Subject: [elpa] externals/ivy-explorer e5148ba 21/25: Address changes according to https://github.com/melpa/melpa/pull/5850#issuecomment-445474712
Date: Tue, 8 Jan 2019 12:25:59 -0500 (EST)

branch: externals/ivy-explorer
commit e5148bac5f19b032652a1d66e6997fb7af80788a
Author: Clemera <address@hidden>
Commit: Clemera <address@hidden>

    Address changes according to 
https://github.com/melpa/melpa/pull/5850#issuecomment-445474712
---
 ivy-explorer.el | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/ivy-explorer.el b/ivy-explorer.el
index 76ae3a3..e41ed62 100644
--- a/ivy-explorer.el
+++ b/ivy-explorer.el
@@ -129,8 +129,8 @@ menu string as `cdr'."
 
 ;; * Ivy explorer window, adapted from lv.el
 
-(defvar display-line-numbers nil)
-(defvar golden-ratio-mode nil)
+(defvar display-line-numbers)
+(defvar golden-ratio-mode)
 
 (defvar ivy-explorer--window nil
   "Holds the current ivy explorer window.")
@@ -264,8 +264,7 @@ If called from code ACTION is the action to trigger 
afterwards."
       (run-at-time 0 nil (or action 'ivy-alt-done))))))
 
 ;; adapted from ivy-hydra
-(defvar ivy-dispatching-done-columns 2
-  "Number of columns to use if the hint does not fit on one line.")
+
 
 (defun ivy-explorer-avy-dispatching-done-hydra ()
   "Choose action and afterwards target using `hydra'."
@@ -277,7 +276,9 @@ If called from code ACTION is the action to trigger 
afterwards."
                                   (format "[%s] %s" (nth 0 x) (nth 2 x)))
                                 (cdr actions) ", "))))
          (n-columns (if (> estimated-len (window-width))
-                        ivy-dispatching-done-columns
+                        (or (and (bound-and-true-p 
ivy-dispatching-done-columns)
+                                 ivy-dispatching-done-columns)
+                            2)
                       nil)))
     (if (null (ivy--actionp actions))
         (ivy-done)



reply via email to

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