typo fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2756 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
16799baccd
commit
0517c482e4
|
@ -600,7 +600,7 @@ int replace_regexp(char *string, bool create)
|
||||||
if (create)
|
if (create)
|
||||||
*string++ = *c;
|
*string++ = *c;
|
||||||
c++;
|
c++;
|
||||||
new_size++;
|
new_line_size++;
|
||||||
} else {
|
} else {
|
||||||
size_t i = regmatches[num].rm_eo - regmatches[num].rm_so;
|
size_t i = regmatches[num].rm_eo - regmatches[num].rm_so;
|
||||||
|
|
||||||
|
@ -608,7 +608,7 @@ int replace_regexp(char *string, bool create)
|
||||||
c += 2;
|
c += 2;
|
||||||
|
|
||||||
/* But add the length of the subexpression to new_size. */
|
/* 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
|
/* And if create is TRUE, append the result of the
|
||||||
* subexpression match to the new line. */
|
* subexpression match to the new line. */
|
||||||
|
|
Loading…
Reference in New Issue