Skip to content

Commit

Permalink
🐛 Fix decoration event emitted when the text editor is destroyed
Browse files Browse the repository at this point in the history
Fixes #477
  • Loading branch information
abe33 committed Apr 27, 2016
1 parent 0dbd917 commit e6aa743
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/mixins/decoration-management.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,8 @@ export default class DecorationManagement extends Mixin {
* @access private
*/
emitDecorationChanges (type, decoration) {
if (decoration.marker.displayBuffer.isDestroyed()) { return }

This comment has been minimized.

Copy link
@as-cii

as-cii May 3, 2016

Contributor

@abe33: this won't be supported after atom/atom#11414 lands. Would it be possible to change this conditional to decoration.marker.isDestroyed() or something similar?


this.invalidateDecorationForScreenRowsCache()

let range = decoration.marker.getScreenRange()
Expand Down

0 comments on commit e6aa743

Please sign in to comment.