Skip to content

Commit

Permalink
🐛 Fix error raised when emitting changes and text editor is no longer…
Browse files Browse the repository at this point in the history
… referenced

Fixes #482
  • Loading branch information
abe33 committed May 20, 2016
1 parent fc2622f commit abc29f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mixins/decoration-management.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ export default class DecorationManagement extends Mixin {
* @access private
*/
emitDecorationChanges (type, decoration) {
if (this.textEditor.isDestroyed()) { return }
if (!this.textEditor || this.textEditor.isDestroyed()) { return }

this.invalidateDecorationForScreenRowsCache()

Expand Down

0 comments on commit abc29f4

Please sign in to comment.