Why does the updated code cannot be applied to the right lines of the file, but always prepend the file?

I have switched to different models in Cursor to try, the problem remains.

And I have uninstalled Cursor and reboot my windows to try again(after re-installed Cursor), it doesn’t work.

I have tried to try different chat window of Cursor, but failed.

Anyone has any idea? thank a lot.

Hey @jims57

Do you have a large file? I saw on the forum that splitting the file into smaller ones can help with the issue.

thank you for your reply, the file in questtion has a maxinum of 626 lines, i don’t think it is a large one.

Updated: It is normal when the same file in question is edited in MacOS-based Cursor.