diff --git a/src/app/gutter.coffee b/src/app/gutter.coffee index ef6f744e0..d8668be3c 100644 --- a/src/app/gutter.coffee +++ b/src/app/gutter.coffee @@ -13,8 +13,10 @@ class Gutter extends View highestNumberWidth: null afterAttach: (onDom) -> + return if @attached or not onDom + @attached = true @editor().on 'cursor-move', => @highlightCursorLine() - @calculateWidth() if onDom + @calculateWidth() editor: -> @parentView