X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=emacs%2Fnotmuch-hello.el;h=1a61768d50d4c6f4c07827c8bff4f34fdc0f133c;hp=ba48cd639467e94f824617034ac87c68169dfdd6;hb=d3aa6848da4519f6229426b1d0432afacf748f8b;hpb=a9a9e374e2567caad8601d1781a3b0af8a3dde13 diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index ba48cd63..1a61768d 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -511,9 +511,12 @@ Complete list of currently available key bindings: (length "Search: "))) :action (lambda (widget &rest ignore) (notmuch-hello-search (widget-value widget)))) - ;; add an invisible space to make `widget-end-of-line' ignore - ;; trailine spaces in the search widget field - (widget-insert " ") + ;; Add an invisible dot to make `widget-end-of-line' ignore + ;; trailing spaces in the search widget field. A dot is used + ;; instead of a space to make `show-trailing-whitespace' + ;; happy, i.e. avoid it marking the whole line as trailing + ;; spaces. + (widget-insert ".") (put-text-property (1- (point)) (point) 'invisible t) (widget-insert "\n")