]> code.delx.au - gnu-emacs-elpa/commit
Store the preselect and use it for empty ivy-text
authorOleh Krehel <ohwoeowho@gmail.com>
Tue, 28 Apr 2015 08:46:28 +0000 (10:46 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Tue, 28 Apr 2015 08:46:28 +0000 (10:46 +0200)
commitb2c9a2059718a019916b12ada80742d0a08331c4
tree4e369938fcfaef4fd8f15f866284ca2b71d1f5c5
parent988b78fd43b017220c4a440bddfa1efe9436ffe2
Store the preselect and use it for empty ivy-text

* ivy.el (ivy-def): New defvar.
(ivy-read): Store `ivy-def'.
(ivy-completing-read): Update.
(ivy--filter): When the input is empty, set `ivy--index' to select
`ivy-def'.

Fixes #64
ivy.el