Removes conditional logic for setting the cursor position after inserting a prompt. Now, the cursor is consistently placed at the end of the inserted text, regardless of the previous cursor location. This change ensures consistent behavior and simplifies the code.