Pass clipping options in setting screen position and translating buffer position for screen position

This allows Cursor.proto.moveRight to avoid pre-clipping its position. It just passes the appropriate clipping options when setting its screen position.
This commit is contained in:
Nathan Sobo
2012-04-06 12:29:40 -06:00
parent 1d7d59d673
commit ce91d50c29
5 changed files with 16 additions and 13 deletions

View File

@@ -333,8 +333,8 @@ class Editor extends View
screenPositionForBufferPosition: (position) ->
@renderer.screenPositionForBufferPosition(position)
bufferPositionForScreenPosition: (position) ->
@renderer.bufferPositionForScreenPosition(position)
bufferPositionForScreenPosition: (position, options) ->
@renderer.bufferPositionForScreenPosition(position, options)
screenRangeForBufferRange: (range) ->
@renderer.screenRangeForBufferRange(range)