Implement clipScreenPosition in terms of translatePosition

This commit is contained in:
Nathan Sobo
2012-02-29 16:47:56 -07:00
parent 84bc108fc8
commit f394716508
2 changed files with 38 additions and 45 deletions

View File

@@ -332,7 +332,7 @@ describe "LineFolder", ->
expect(folder.screenPositionForBufferPosition([11, 13])).toEqual [8, 13]
expect(folder.bufferPositionForScreenPosition([5, 0])).toEqual [8, 0]
expect(folder.bufferPositionForScreenPosition([10, 13])).toEqual [13, 13]
expect(folder.bufferPositionForScreenPosition([9, 2])).toEqual [12, 2]
describe "when there is a single fold spanning a single line", ->
it "translates positions to account for folded characters and the placeholder", ->