X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;ds=sidebyside;f=emacs%2Fnotmuch-address.el;h=b2e1fba797592869de3628d088e28f8f2aac9b53;hb=0c52b5d3b29205059dbd308fa8e52558df57401b;hp=10eaab196267bbad86c967e1318ea6083a577b44;hpb=07dff496304d6dc2e8033a18691b095ed9cd212f;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)