evil-visual-mark-mode icon indicating copy to clipboard operation
evil-visual-mark-mode copied to clipboard

Only show marks added in current session

Open alienbogart opened this issue 5 years ago • 4 comments

Runtime Environment

Issue

When I add a mark such as Z, close the file and then reopen it, evil-visual-mark-mode does not show the Z marker, even though Z works correctly. It only shows newly added markers.

alienbogart avatar Jul 09 '19 20:07 alienbogart

Maybe it's due to the invalidation of overlay. evil-visual-mark-mode caches overlays and when a buffer is killed, all its corresponding overlays become invalid like this #<overlay in no buffer>.

gratonos avatar Jul 14 '19 05:07 gratonos

Is there something I can do about it?

alienbogart avatar Jul 14 '19 18:07 alienbogart

Avoid to kill buffers may bypass this issue. I will see if I could fix it, though I'm not good at emacs lisp.

gratonos avatar Jul 15 '19 13:07 gratonos

Okay then, thanks!

alienbogart avatar Jul 16 '19 04:07 alienbogart