Commit Diff
- Commit:
8c28a2abbc4aeeb588826ad0010267d507e71ff8
- From:
- Mikhail <mp39590@gmail.com>
- Via:
- Mark Jamsek <mark@jamsek.dev>
- Date:
- Message:
- tog: resume blame and diff search from the first line In diff and blame views, if the user scrolls up during a search, resume search from the first displayed line--not the current match. This makes sense in these views as the "cursor" or current line is the first line. Patch by Mikhail. ok op@
- Actions:
- Patch | Tree
--- tog/tog.c +++ tog/tog.c @@ -4977,9 +4977,9 @@ search_next_view_match(struct tog_view *view) if (*match) { if (view->searching == TOG_SEARCH_FORWARD) - lineno = *match + 1; + lineno = *first + 1; else - lineno = *match - 1; + lineno = *first - 1; } else lineno = *first - 1 + *selected;