]> git.neil.brown.name Git - edlib.git/commitdiff
notmuch: focus on query pane when changing messages
authorNeilBrown <neil@brown.name>
Fri, 21 Jul 2023 08:43:30 +0000 (18:43 +1000)
committerNeilBrown <neil@brown.name>
Fri, 21 Jul 2023 08:43:30 +0000 (18:43 +1000)
The previous patch didn't fix this properly.  'K-a' wasn't handled for
examine.
Try again.

Fixes: 5707b369a802 ("notmuch: when moving among messages, set focus to query pane.")
Signed-off-by: NeilBrown <neil@brown.name>
DOC/TODO.md
python/module-notmuch.py

index 190d72b3b2ddc40b52100d0d0f40baab9e957803..e702b1bc7bee471527f98c6cace321730c473eb7 100644 (file)
@@ -28,7 +28,7 @@ the file.
 - [X] visiting a new file from a 44 popup is weird.
 - [X] search in history always finds a new history line.  It doesn't
       check if new patterns still matches this line.
-- [ ] in notmuch cursor should go to query result when changing
+- [X] in notmuch cursor should go to query result when changing
       messages.
 - [ ] menu for address completions in email-compose
 
index fa229a488515642f7bcd1983e705f5f00f0a4979..4609d144593f2882dd1003c7c1c3e717fe8cfe6b 100644 (file)
@@ -2038,8 +2038,6 @@ class notmuch_master_view(edlib.Pane):
 
         m = p.call("doc:dup-point", 0, edlib.MARK_UNGROUPED, ret='mark')
         p.call("notmuch:select", m, direction)
-        if self.query_pane:
-            self.query_pane.take_focus()
         return 1
 
     def handle_j(self, key, focus, **a):
@@ -3055,6 +3053,7 @@ class notmuch_query_view(edlib.Pane):
                 focus.call("notmuch:select-message", s2, s)
                 self.selmsg = s2
                 self.call("view:changed")
+        self.take_focus()
         return 1
 
     def handle_reposition(self, key, focus, mark, mark2, **a):