mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 20:08:10 +01:00
contrib: pick: bugfix when trying to show a non-message
If the user pressed return on the end result status line it gave a blank message. Modify the function notmuch-pick-get-message-id to return nil rather than an empty message-id in this case to fix this. This also fixes a bug in the (lack of) quoting of the id string.
This commit is contained in:
parent
ff9fd62ab6
commit
96d9f54615
1 changed files with 4 additions and 1 deletions
|
@ -241,7 +241,10 @@ Some useful entries are:
|
|||
|
||||
(defun notmuch-pick-get-message-id ()
|
||||
"Return the message id of the current message."
|
||||
(concat "id:\"" (notmuch-pick-get-prop :id) "\""))
|
||||
(let ((id (notmuch-pick-get-prop :id)))
|
||||
(if id
|
||||
(notmuch-id-to-query id)
|
||||
nil)))
|
||||
|
||||
(defun notmuch-pick-get-match ()
|
||||
"Return whether the current message is a match."
|
||||
|
|
Loading…
Reference in a new issue