imenu-list
imenu-list copied to clipboard
Fix #79 imenu-list update when same position, but different buffer
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