Hello! Sometimes it happens that instead of pressing CMD+RIGHT ARROW, in order to go to the end of the line, I press CMD+ARROW UP, so the text cursor goes in the very beginning of the file.
When it happens I press CMD+Z and the text cursor goes back where I was editing but obviously it undo the latest action.
How can I go back to the part of the file that I was editing without losing the selection?
Last second edit, I can press CMD+Z and then CMD+MAIUSC+Z.
If you have got any other ideas you can tell me, but I think this is the best solution