Closes #35347 Release Notes: - Fixed Go To Line jumping back to previous position on dismiss
CursorPosition::update_position