But this isn't really what vim does, is it? Try the following with this patch:

  1. Delete a line in the middle of a file.
  2. Scroll to the top of the file so you have the cursor e.g. on the first line
  3. Press u

The undo happens but your cursor is still on the first line instead of being at the position of the change which is very confusing. I think what you want instead is to get the information where the undo happened and move the cursor to the first line of the diff. Maybe you could achieve this using SC_PERFORMED_UNDO (not sure, I haven't studied how exactly this works and if it provides enough information).


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany-plugins/pull/1328/c2100805402@github.com>