Commit Diff


commit - 44f2135acadb53e3cdc7d9029b48fea665cf7e4f
commit + 7303e8c811ca9c78e98cb71ca412092c4f71387a
blob - 7a443c32222603c98870189473ea2ab0ce7289d0
blob + d037ba6e7f9ef2bca82a60d6147f9f09ac20098c
--- tog/tog.c
+++ tog/tog.c
@@ -4981,9 +4981,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;