bug-ed
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-ed] GNU ed 1.14-pre1 released


From: Antonio Diaz Diaz
Subject: Re: [Bug-ed] GNU ed 1.14-pre1 released
Date: Wed, 20 Apr 2016 18:46:37 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.8.1.4) Gecko/20070601 SeaMonkey/1.1.2

Ori Avtalion wrote:
  * The current address is now correctly set to the addressed line after an
empty insert command.
[...]
  * The substitute command now correctly sets the current address to the
address of the last line on which a substitution occurred, and leaves it
unchanged if no substitution is performed.
[...]
  * The current address is now correctly set to the addressed line (or to
the new last line if at EOF) after an empty replacement text in the change
command.

1) Shouldn't these be listed next to each other in the changelog,
since they're mostly the same change?

The first and third are in fact related. They were both fixed by adding a parameter to the function 'append_lines' in buffer.c.

But the second is an independent problem that was fixed by making several changes to the function search_and_replace in regex.c. Previously it used the current address as a loop variable, leaving it at the last line in the address range, irrespective of any substitution being done or not.


2) Does "insert command" also mean the "append command"?

I think not. The append command already left the current address in the right place after an empty text.


Best regards,
Antonio.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]