contrib: pick: bugfix for pick splitting the window excessively

Previously if you carried on past the last message in a pick view pick
would get confused and `forget' about the split pane and would try and
re-split when moving up again. This was due to faulty logic in
notmuch-pick-show-message: something that should have been in the (when message)
clause was not.

Thanks to jrollins for the bug report.
This commit is contained in:
Mark Walters 2012-12-09 20:17:29 +00:00 committed by David Bremner
parent 0f9c630a8a
commit 8f1a8c7b09

View file

@ -339,8 +339,8 @@ Does NOT change the database."
(with-selected-window notmuch-pick-message-window (with-selected-window notmuch-pick-message-window
(setq current-prefix-arg '(4)) (setq current-prefix-arg '(4))
(setq buffer (notmuch-show id nil nil nil))) (setq buffer (notmuch-show id nil nil nil)))
(notmuch-pick-tag-update-display (list "-unread"))) (notmuch-pick-tag-update-display (list "-unread"))
(setq notmuch-pick-message-buffer buffer))) (setq notmuch-pick-message-buffer buffer))))
(defun notmuch-pick-show-message-out () (defun notmuch-pick-show-message-out ()
"Show the current message (in whole window)." "Show the current message (in whole window)."