This commit is contained in:
Corey Johnson
2012-05-16 11:21:28 -07:00
parent 1b2b5b3311
commit 05903a6e56

View File

@@ -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()