When searching backwards and result is just above display, the
result doesn't get shown. Sometimes.
- [X] visiting a new file from a 44 popup is weird.
-- [ ] search in history always finds a new history line. It doesn't
+- [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
messages.
call("view:changed", focus);
call("Mode:set-mode", focus, 0, NULL, ":History-search");
m = mark_at_point(hi->history, NULL, MARK_UNGROUPED);
+ /* Alway search backwards from the end-of-line of last match */
+ call("doc:EOL", hi->history, 1, m);
ret = call("text-search", hi->history, 1, m, buf_final(&hi->search),
hi->search_back);
if (ret <= 0) {
mark_free(m);
return;
}
+ /* Leave point at start-of-line */
call("doc:EOL", hi->history, -1, m);
call("Move-to", hi->history, 0, m);
mark_free(m);