selected icon indicating copy to clipboard operation
selected copied to clipboard

[Minor bug] Highlighted area stays after package deactivation/reactivation

Open scsmash3r opened this issue 6 years ago • 0 comments

Atom: 1.41.0 x64 OS: Win 8.1 Highlight Selected: 0.16.0

To reproduce:

  1. Highlight something in any file.
  2. Press CTRL+, (open Settings tab) without removing the highlights.
  3. Disable this package.
  4. Go back to the file tab.

Without custom styles added, it will seem that highlights are gone. But if you re-enable package, old highlight zones reappear.

With a custom style, where background is changed, it will be even more noticeable:

atom-text-editor {
  .highlights .highlight-selected.background .region {
    background-color: rgba(60, 80, 255, 0.7);
  }
}

Ofc, reopening the file 'cures' this behavior and removes old highlights. I guess there should be some event like onPackageDeactivation or something (not familiar with Atom API) to clear the highlight zones before package disabling?

scsmash3r avatar Nov 22 '19 18:11 scsmash3r