selected
selected copied to clipboard
[Minor bug] Highlighted area stays after package deactivation/reactivation
Atom: 1.41.0 x64 OS: Win 8.1 Highlight Selected: 0.16.0
To reproduce:
- Highlight something in any file.
- Press CTRL+, (open Settings tab) without removing the highlights.
- Disable this package.
- 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?