chentoast/marks.nvim

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

levouh opened this issue · 5 comments

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)

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

@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).

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

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!

Works perfectly for me now.