Re: [PATCH v2] search: skip a match on the magic line, as it is a just convenience line

Benno Schulenberg <[email protected]>
Newsgroups gmane.editors.nano.devel
Message-ID <[email protected]>
Op 09-09-2022 om 12:55 schreef Benno Schulenberg:
> As the magic line isn't really a line (it is not counted in the number
> of lines read and written), and nothing is on it (not even a newline),
> it doesn't make sense to allow any regex, like ^ or $, to match it.
> 
> This fixes https://savannah.gnu.org/bugs/?63034.
> Indirectly-reported-by: Mike Scalora <[email protected]>


> +			/* When not on the magic line, the match is valid. */
> +			if (line->next || line->data[0])
> +				break;

Merged into master:

  https://git.savannah.gnu.org/cgit/nano.git/commit/?id=50954a4b

Benno
OpenPGP_signature (application/pgp-signature, 840 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.