]> git.notmuchmail.org Git - notmuch/commitdiff
contrib: pick: bugfix for pick splitting the window excessively
authorMark Walters <markwalters1009@gmail.com>
Sun, 9 Dec 2012 20:17:29 +0000 (20:17 +0000)
committerDavid Bremner <bremner@debian.org>
Tue, 11 Dec 2012 14:01:18 +0000 (10:01 -0400)
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.

contrib/notmuch-pick/notmuch-pick.el

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