From 4a0a1145054db9ba71c48ae5c3d766a06e144887 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Wed, 5 Feb 2020 02:50:12 +0300 Subject: [PATCH] Support ido-vertical-mode better * lisp/ido.el (ido-exhibit): Prepend a space to INF if it starts with a newline (bug#39379). --- lisp/ido.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/ido.el b/lisp/ido.el index 355be5eaa66..6707d814077 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -4732,6 +4732,9 @@ For details of keybindings, see `ido-find-file'." (delete-overlay ido--overlay)) (let ((o (make-overlay (point-max) (point-max) nil t t))) (when (> (length inf) 0) + ;; For hacks that redefine ido-completions function (bug#39379) + (when (eq (aref inf 0) ?\n) + (setq inf (concat " " inf))) (put-text-property 0 1 'cursor t inf)) (overlay-put o 'after-string inf) (setq ido--overlay o))) -- 2.39.5