set cursor position also for opened files