ed.py: in input mode, add each new line to buffer immediately