Maximum length of the history list is determined by the value
of `history-length', which see.")
-(defvar ivy-def nil
- "Store the default completion value. See `completing-read'.")
-
(defvar ivy--directory nil
"Current directory when completing file names.")
:update-fn update-fn
:sort sort))
(setq ivy--directory nil)
- (setq ivy-def preselect)
(setq ivy-window (selected-window))
(setq ivy--regex-function
(or (and (functionp collection)
(setq ivy--index (or idx 0))))
(when (and (string= name "") (not (equal ivy--old-re "")))
(setq ivy--index
- (or (cl-position ivy-def cands :test 'equal)
+ (or (cl-position (ivy-state-preselect ivy-last)
+ cands :test 'equal)
ivy--index)))
(setq ivy--old-re re)
(setq ivy--old-cands cands)))