Compare:
(ivy-completing-read "test" '("foo" "bar") nil nil nil nil '("spam" "eggs"))
(completing-read-default "test" '("foo" "bar") nil nil nil nil '("spam" "eggs"))
If ivy-completing-read really needs to remove the trailing space, it should make sure the last character is a space before unceremoniously decapitating PROMPT.
Compare:
If
ivy-completing-readreally needs to remove the trailing space, it should make sure the last character is a space before unceremoniously decapitating PROMPT.