imenu-list icon indicating copy to clipboard operation
imenu-list copied to clipboard

Fix #79 imenu-list update when same position, but different buffer

Open bitterfox opened this issue 2 years ago • 0 comments

Fix #79 The cause is comparing the new location and the last location as an integer by =.

https://www.gnu.org/software/emacs/manual/html_node/elisp/Overview-of-Markers.html

A marker can be used to represent a position in functions that require one, just as an integer could be used. In that case, the marker’s buffer is normally ignored.

so, it's compared with position only, but we should compare with position and buffer so that we update it when the buffer is changed, using equal

bitterfox avatar Apr 04 '22 11:04 bitterfox