Rename Renderer -> DisplayBuffer

The idea is that the DisplayBuffer serves a similar role to the Buffer, except that it's holding content in an arrangement that's optimized for display.
This commit is contained in:
Nathan Sobo
2012-06-13 21:02:30 -06:00
parent 5135f3e066
commit b59e73edcd
5 changed files with 234 additions and 234 deletions

View File

@@ -569,7 +569,7 @@ class Editor extends View
@setScrollPositionFromActiveEditSession()
@renderLines()
@activeEditSession.on 'screen-lines-change', (e) => @handleRendererChange(e)
@activeEditSession.on 'screen-lines-change', (e) => @handleDisplayBufferChange(e)
getCursorView: (index) ->
index ?= @cursorViews.length - 1
@@ -690,7 +690,7 @@ class Editor extends View
getLastVisibleScreenRow: ->
Math.ceil((@scrollTop() + @scrollView.height()) / @lineHeight) - 1
handleRendererChange: (e) ->
handleDisplayBufferChange: (e) ->
oldScreenRange = e.oldRange
newScreenRange = e.newRange