proper positioning to cursor when switching to text datablock in case there was no datablock opened in text editor.