]> code.delx.au - gnu-emacs-elpa/commit
ivy.el (ivy--insert-prompt): Use newlines instead of truncation
authorOleh Krehel <ohwoeowho@gmail.com>
Tue, 6 Oct 2015 13:29:27 +0000 (15:29 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Tue, 6 Oct 2015 13:29:27 +0000 (15:29 +0200)
commit6db3d543cd277147886fec70658a0477ca83fb6f
tree6d77c903e13755137c41987b578c19e76715089c
parent47a220d521b9fb916f0d51da2df229a9ff7870b7
ivy.el (ivy--insert-prompt): Use newlines instead of truncation

When the prompt string is longer than window-width, insert newlines
appropriately so that the whole prompt fits in the window without
scrolling.  Finally, when prompt+entered text would be larger than
window-width, reformat the prompt so that entered text starts on a
newline.  When completing file names, move the whole path to a new line
in that case.

Fixes #252
ivy.el