From 05903a6e5602e55e5caedda77b8901c61a913784 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Wed, 16 May 2012 11:21:28 -0700 Subject: [PATCH] :lipstick: --- src/app/editor.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()