Fixed a bug with newlines in line input on text buffer windows.