Exit visual mode when cutting text in the editor. Ensures the cursor goes to the correct spot and prevents crashing when cutting at the end of a file.