X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-address.el;h=b2e1fba797592869de3628d088e28f8f2aac9b53;hb=02d3c7610297437da5ddc414e16cd1fabf95dcfb;hp=10eaab196267bbad86c967e1318ea6083a577b44;hpb=827c28a04effc58f29e751788690d2f4b434902d;p=notmuch diff --git a/emacs/notmuch-address.el b/emacs/notmuch-address.el index 10eaab19..b2e1fba7 100644 --- a/emacs/notmuch-address.el +++ b/emacs/notmuch-address.el @@ -194,7 +194,14 @@ external commands." (t (funcall notmuch-address-selection-function (format "Address (%s matches): " num-options) - (cdr options) (car options)))))) + ;; We put the first match as the initial + ;; input; we put all the matches as + ;; possible completions, moving the + ;; first match to the end of the list + ;; makes cursor up/down in the list work + ;; better. + (append (cdr options) (list (car options))) + (car options)))))) (if chosen (progn (push chosen notmuch-address-history)