chentoast / marks.nvim

A better user experience for viewing and interacting with Vim marks.
MIT License
798 stars 40 forks source link

m] (default mapping) stops working when buffer text changes #10

Closed levouh closed 2 years ago

levouh commented 2 years ago

Open a buffer with marks, remove a few lines, issue the default command for m] and note that it goes to the wrong line (where the mark used to be)

The builtin "goto mark" with a backtick still goes to the correct location (where the current sign is)

chentoast commented 2 years ago

Yep, I’m aware of this issue. Will be working on a fix asap since this bug is pretty annoying.

chentoast commented 2 years ago

@levouh Quickly spun together a fix for this at #11. Do you mind testing that branch out to see if that fixes your problem? (It should, but there might be edge cases I haven't considered).

chentoast commented 2 years ago

This should be resolved in latest master, but please reopen this issue if you find that this still happens.

levouh commented 2 years ago

I didn't even get an email until you just merged this now, sorry I didn't see it earlier to help with testing.

Will let you know, thanks for the quick turnaround!

levouh commented 2 years ago

Works perfectly for me now.