emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-27 4a0a114: Support ido-vertical-mode better


From: Dmitry Gutov
Subject: emacs-27 4a0a114: Support ido-vertical-mode better
Date: Tue, 4 Feb 2020 18:53:12 -0500 (EST)

branch: emacs-27
commit 4a0a1145054db9ba71c48ae5c3d766a06e144887
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    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 355be5e..6707d81 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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]