optimized redrawing line when deleting from the end
fixes and optimizations to parser and filelister
must not forget newline