From: Jim Warner Date: Thu, 6 Dec 2012 06:00:00 +0000 (-0600) Subject: top: refine inspect logic for already in-place matches X-Git-Tag: v3.3.6~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2219c8051455da0e82c1dfd2a629c2423f1aabce;p=procps-ng top: refine inspect logic for already in-place matches Signed-off-by: Jim Warner --- 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;