mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-03 15:21:41 +01:00
notmuch-hello: Fix ability to isearch to a saved-search and press RET
After isearching for an entire saved-search name, the point will be
immediately after that name in the buffer. Before commit
c9ba61bebe
the space right after the
name was part of the widget so the user could press RET right after
the isearch to activate the saved search.
The above commit broke that functionality. Restore it by including a
single space after each name as part of the widget.
This commit is contained in:
parent
7df0e611df
commit
ca5ae54cb1
1 changed files with 4 additions and 5 deletions
|
@ -168,14 +168,13 @@ diagonal."
|
|||
;; (not elem) indicates an empty slot in the matrix.
|
||||
(when elem
|
||||
(widget-insert (format "%6s " (notmuch-folder-count (cdr elem))))
|
||||
(if (string= (car elem) target)
|
||||
(progn
|
||||
(setq found-target-pos (point-marker))))
|
||||
(if (string= (format "%s " (car elem)) target)
|
||||
(setq found-target-pos (point-marker)))
|
||||
(widget-create 'push-button
|
||||
:notify #'notmuch-hello-widget-search
|
||||
:notmuch-search-terms (cdr elem)
|
||||
(car elem))
|
||||
(insert (make-string (- widest (length (car elem))) ? )))
|
||||
(format "%s " (car elem)))
|
||||
(insert (make-string (1- (- widest (length (car elem)))) ? )))
|
||||
(setq count (1+ count))
|
||||
(if (eq (% count tags-per-line) 0)
|
||||
(widget-insert "\n"))))
|
||||
|
|
Loading…
Reference in a new issue