Fix unfoldBufferRow

This commit is contained in:
Max Brunsfeld
2017-09-23 15:56:55 -07:00
parent a73de8c0b5
commit 6df3c27da0

View File

@@ -3316,7 +3316,8 @@ class TextEditor extends Model
# Essential: Unfold the most recent cursor's row by one level.
unfoldCurrentRow: ->
position = @getCursorBufferPosition()
{row} = @getCursorBufferPosition()
position = Point(row, Infinity)
@displayLayer.destroyFoldsIntersectingBufferRange(Range(position, position))
# Essential: Fold the given row in buffer coordinates based on its indentation