wolray / symbol-overlay

Highlight symbols with keymap-enabled overlays
346 stars 42 forks source link

Preserve highlighting after buffer was reverted #34

Closed tarsius closed 5 years ago

tarsius commented 5 years ago

I often highlight some symbols and then check out some other revision, expecting the highlighting to survive. This causes file-visiting buffers to be reverted to display the "current" version of the file. A file-visiting buffer may also be reverted for other reasons.

Unfortunately this discards all symbol highlighting. With this pull-requests the highlighting is preserved; see the last commit.


This pull-requests also comes with some unrelated changes. If you don't like all of them, I can rewrite this to drop the undesired commits.

purcell commented 5 years ago

Seems reasonable, the key change (ccf7913) is minimally invasive, and the incidental tidy-ups make sense, so I'll take the liberty of merging. Thanks!