widget-end-of-line checks eolp to decide whether C-e in a fixed size
field should go to the end of the text in the field or the end of
the field itself. So put a trailing white space to pad the search
field.

Previous behavior:

 Search: [text                _]

Now:

 Search: [text_                ]
---
 emacs/notmuch-hello.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index f8ae332..6ef03bb 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -416,10 +416,10 @@ Complete list of currently available key bindings:
                       ;; Leave some space at the start and end of the
                       ;; search boxes.
                       :size (max 8 (- (window-width) notmuch-hello-indent
-                                      (length "Search: ")))
+                                      (length "Search: ") 1 ))
                       :action (lambda (widget &rest ignore)
                                 (notmuch-hello-search (widget-value widget))))
-       (widget-insert "\n")
+       (widget-insert " \n")

        (when notmuch-hello-recent-searches
          (widget-insert "\nRecent searches: ")
-- 
1.7.1

Reply via email to