* ivy.el (ivy--insert-prompt): When the prompt string is longer than the
window width, truncate it to window width minus 26 chars.
Fixes #240
(save-excursion
(goto-char (point-min))
(delete-region (point-min) (minibuffer-prompt-end))
+ (when (> (length n-str) (window-width))
+ (setq n-str (concat (substring n-str 0 (- (window-width) 30)) "... ")))
(set-text-properties 0 (length n-str)
`(face minibuffer-prompt ,@std-props)
n-str)