From 6df3c27da06506dd969ed480c8e7ef15174fb4b5 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Sat, 23 Sep 2017 15:56:55 -0700 Subject: [PATCH] Fix unfoldBufferRow --- src/text-editor.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/text-editor.coffee b/src/text-editor.coffee index 2aad26f45..5ded33bb1 100644 --- a/src/text-editor.coffee +++ b/src/text-editor.coffee @@ -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