Restore LineWrapper.clipScreenPosition version that passes existing tests.

It's still wrong, but I need a test to demonstrate how.
This commit is contained in:
Nathan Sobo
2012-02-24 21:13:34 -07:00
parent 17205cae3f
commit 35f1243d32

View File

@@ -94,13 +94,10 @@ class LineWrapper
@lineMap.bufferRangeForScreenRange(screenRange))
clipScreenPosition: (screenPosition) ->
# console.log @lineMap.bufferPositionForScreenPosition(@lineMap.clipScreenPosition(screenPosition)).inspect()
@lineFolder.clipScreenPosition(@lineMap.clipScreenPosition(screenPosition))
# @lineMap.clipScreenPosition(screenPosition)
# @lineMap.screenPositionForBufferPosition(
# @lineFolder.clipScreenPosition(
# @lineMap.bufferPositionForScreenPosition(
# @lineMap.clipScreenPosition(screenPosition))))
@lineMap.screenPositionForBufferPosition(
@lineFolder.clipScreenPosition(
@lineMap.bufferPositionForScreenPosition(
@lineMap.clipScreenPosition(screenPosition))))
lineForScreenRow: (screenRow) ->
@linesForScreenRows(screenRow, screenRow)[0]