Update the location info in the stack if the cursor has moved before jumping.