diff --git a/src/app/editor.coffee b/src/app/editor.coffee index 18e1fa0c6..6ad60fe92 100644 --- a/src/app/editor.coffee +++ b/src/app/editor.coffee @@ -231,6 +231,7 @@ class Editor extends View afterAttach: (onDom) -> return if @attached or not onDom @attached = true + @clearLines() @subscribeToFontSize() @calculateDimensions() @setMaxLineLength() if @softWrap