nano

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

commit 0517c482e4b8f458958a1278c86d1cfe3d205aab
parent 16799baccd5afd4c35d042e8cb4061250b01f48b
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Tue, 21 Jun 2005 22:37:47 +0000

typo fixes


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

Diffstat:
Msrc/search.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/search.c b/src/search.c @@ -600,7 +600,7 @@ int replace_regexp(char *string, bool create) if (create) *string++ = *c; c++; - new_size++; + new_line_size++; } else { size_t i = regmatches[num].rm_eo - regmatches[num].rm_so; @@ -608,7 +608,7 @@ int replace_regexp(char *string, bool create) c += 2; /* But add the length of the subexpression to new_size. */ - new_size += i; + new_line_size += i; /* And if create is TRUE, append the result of the * subexpression match to the new line. */