minor bugfix for text editor. Editor is now always scrolled to the top
(with cursor position on first line) when a new project is loaded