ed

[hare] The standard editor
Log | Files | Refs | README | LICENSE

commit e54fcfe3d304dbb92ae4dec8cc45d9680bde0c77
parent 3350101a685cf3b49e5233edf18f7663cb64590e
Author: Curtis Arthaud <uku82@gmx.fr>
Date:   Sat, 16 Mar 2024 10:06:54 +0100

fix substitute escaped linefeed extra blank line

The following sequence would add an extra blank line. Now it doesn't.

    *s/ /\<Enter>
    <Enter>
    *

Signed-off-by: Curtis Arthaud <uku82@gmx.fr>

Diffstat:
Mparse.ha | 6------
1 file changed, 0 insertions(+), 6 deletions(-)

diff --git a/parse.ha b/parse.ha @@ -102,12 +102,6 @@ fn parse(input: *bufio::scanner) (Command | ParseError | InteractionError) = { case io::EOF => break; }; - // workaround scan_line undelimited last line. - // note, GNU ed would use "p\n" instead. - if (inputline == "") { - append(cmd.textinput, "\n"); - break; - }; let t = strings::iter(inputline); let (part, seen_delim) = scan_item(&t, cmd.delim);