nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 0227ccca7c6f082ed54d7760ce900d02399df4cf
parent 25799f68629245e0fe5647ee7c9d1c51385f6970
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Sat, 18 Jun 2005 17:20:54 +0000

formatting fixes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2727 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/utils.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/utils.c b/src/utils.c @@ -260,15 +260,15 @@ const char *strstrwrapper(const char *haystack, const char *needle, if (ISSET(USE_REGEXP)) { #ifndef NANO_SMALL if (ISSET(BACKWARDS_SEARCH)) { - if (regexec(&search_regexp, haystack, 1, regmatches, 0) == 0 - && haystack + regmatches[0].rm_so <= start) { + if (regexec(&search_regexp, haystack, 1, regmatches, + 0) == 0 && haystack + regmatches[0].rm_so <= start) { const char *retval = haystack + regmatches[0].rm_so; /* Search forward until there are no more matches. */ - while (regexec(&search_regexp, retval + 1, 1, regmatches, - REG_NOTBOL) == 0 && retval + 1 + - regmatches[0].rm_so <= start) - retval += 1 + regmatches[0].rm_so; + while (regexec(&search_regexp, retval + 1, 1, + regmatches, REG_NOTBOL) == 0 && + retval + regmatches[0].rm_so + 1 <= start) + retval += regmatches[0].rm_so + 1; /* Finally, put the subexpression matches in global * variable regmatches. The REG_NOTBOL flag doesn't * matter now. */