From 2219c8051455da0e82c1dfd2a629c2423f1aabce Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Thu, 6 Dec 2012 00:00:00 -0600 Subject: [PATCH] top: refine inspect logic for already in-place matches Signed-off-by: Jim Warner --- top/top.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/top/top.c b/top/top.c index a4770911..e7bbc558 100644 --- a/top/top.c +++ b/top/top.c @@ -2541,9 +2541,9 @@ static void insp_find_str (int ch, int *col, int *row) { xx = insp_find_ofs(xx, yy); if (xx < INSP_RLEN(yy)) { found = 1; - if (xx == *col) { // matched where we were! - ++xx; // ( was the user maybe ) - continue; // ( trying to fool us? ) + if (xx == *col && yy == *row) { // matched where we were! + ++xx; // ( was the user maybe ) + continue; // ( trying to fool us? ) } *col = xx; *row = yy; -- 2.40.0