Remove unnecessary guard in screenLineForScreenRow

This commit is contained in:
Max Brunsfeld
2016-10-12 11:39:16 -07:00
parent c2363010f8
commit 8d6bc5be48

View File

@@ -969,8 +969,7 @@ class TextEditor extends Model
tokens
screenLineForScreenRow: (screenRow) ->
result = @displayLayer.getScreenLines(screenRow, screenRow + 1)
result[0] if result
@displayLayer.getScreenLines(screenRow, screenRow + 1)[0]
bufferRowForScreenRow: (screenRow) ->
@displayLayer.translateScreenPosition(Point(screenRow, 0)).row