diff --git a/src/app/editor.coffee b/src/app/editor.coffee index b09c85979..18e1fa0c6 100644 --- a/src/app/editor.coffee +++ b/src/app/editor.coffee @@ -263,12 +263,15 @@ class Editor extends View @lines.css('padding-bottom', linesHeight) renderLines: -> + @clearLines() + @updateLines() + + clearLines: -> @lineCache = [] @lines.find('.line').remove() @firstRenderedScreenRow = -1 @lastRenderedScreenRow = -1 - @updateLines() updateLines: -> firstVisibleScreenRow = @getFirstVisibleScreenRow()