Permalink
Browse files

ivy.el (ivy-completing-read): Fix off by one

Re #295
  • Loading branch information...
abo-abo committed Nov 18, 2015
1 parent 8fdf210 commit e47ec1471386a8239739904e73a88b8240278be0
Showing with 1 addition and 1 deletion.
  1. +1 −1 ivy.el
View
2 ivy.el
@@ -1238,7 +1238,7 @@ The history, defaults and input-method arguments are ignored for now."
;; See the doc of `completing-read'.
(when (consp history)
(when (numberp (cdr history))
(setq initial-input (nth (cdr history)
(setq initial-input (nth (1- (cdr history))
(symbol-value (car history)))))
(setq history (car history)))
(ivy-read (replace-regexp-in-string "%" "%%" prompt)

0 comments on commit e47ec14

Please sign in to comment.