From ecc1933c1469d15a7e2e89990c8c5836b229962f Mon Sep 17 00:00:00 2001
From: Chris Allegretta <chrisa@asty.org>
Date: Tue, 25 Sep 2001 01:49:38 +0000
Subject: [PATCH] Off by one error in findnextstr?

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@787 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 search.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/search.c b/search.c
index baf136e0..249f3e86 100644
--- a/search.c
+++ b/search.c
@@ -240,7 +240,7 @@ filestruct *findnextstr(int quiet, int bracket_mode, filestruct * begin, int beg
 	current_x_find = current_x + 1;
 
 	/* Are we now back to the line where the search started) */
-	if ((fileptr == begin) && (beginx >= current_x_find))
+	if ((fileptr == begin) && (beginx > current_x_find))
 	    search_last_line = 1;
 
 	/* Make sure we haven't passed the end of the string */
-- 
GitLab