Line-oriented text editor