There's a difference between the default behavior of completing-read, and ivy-completing-read when de DEF argument is a symbol. It seems to lose the suggestions collection, and will not return said value upon "RET" with empty input.
(completing-read"Q: " '(one two) nilnilnilnil'one)
;; => no suggestions and empty "" on RET
(completing-read-default"Q: " '(one two) nilnilnilnil'one)
;; => Shows suggestions on tab and expected default value on RET
I've looked through open and closed issues and found some other issues about completing read, but not about this case so I opened a new one.
I couldn't find any specification of expected type in the default completing-read documentation, correct me if I'm wrong.
* Use prefix arg and ivy-immediate-done to let the user explicitly exit
with empty input, i.e. the caller default.
* Fix `completing-read' compat
* ivy-test.el: Add relevant positive tests
* ivy.el (ivy-alt-done): Update docstring
Related to abo-abo#1170Fixesabo-abo#1526