atom/go-to-line

Goto folded row -> does not unfold

Closed this issue · 2 comments

Given a simple JSON (or any other foldable code block):
image

When I fold it and then go to a line in between the folded code block:
image

Then I expect the code block to unfold and jump to the entered line.
Instead it remains folded.
image

Works at least in Sublime Text 3.

Atom: 1.0.10
OS: Win 8.1 64Bit

How to fix:
adding the following lines after https://github.com/atom/go-to-line/blob/master/lib/go-to-line-view.coffee#L68 unfolds the row

if (editor.isFoldedAtBufferRow(position)) {
  editor.unfoldBufferRow(position)
}

opened a new one in atom