Off by one error in findnextstr?
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@787 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
c1968a0795
commit
ecc1933c14
2
search.c
2
search.c
|
@ -240,7 +240,7 @@ filestruct *findnextstr(int quiet, int bracket_mode, filestruct * begin, int beg
|
||||||
current_x_find = current_x + 1;
|
current_x_find = current_x + 1;
|
||||||
|
|
||||||
/* Are we now back to the line where the search started) */
|
/* 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;
|
search_last_line = 1;
|
||||||
|
|
||||||
/* Make sure we haven't passed the end of the string */
|
/* Make sure we haven't passed the end of the string */
|
||||||
|
|
Loading…
Reference in New Issue