Show selection after inserting newline

Without this the cursor sometimes goes out of view (for example, when defining a new function at the bottom of the file).