return the cursor to the correct column after saving the buffer