ed: fix "\n" removal in command line; make "w" set "dirty = 0"
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 27 Jul 2017 10:34:56 +0000 (12:34 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 27 Jul 2017 10:34:56 +0000 (12:34 +0200)
commit6bdcee835710e9a7dda6e31a8d5bc3992037db28
treeee938d1d773a6b33e02b350559c1df839ff3aa2c
parent7d2f33dc1f6dcd44671d88360bc598ad82c37a60
ed: fix "\n" removal in command line; make "w" set "dirty = 0"

function                                             old     new   delta
doCommands                                          2184    2226     +42
getNum                                               345     343      -2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 42/-2)              Total: 40 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
editors/ed.c