Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/nav-view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,10 @@ class NavView extends ResizableWidthView
marker = editor.getMarker(markerId)
return unless marker
row = marker.getStartBufferPosition()
editor.unfoldBufferRow(row)
# See https://discuss.atom.io/t/how-to-toggle-current-fold-in-editor-view/11094/5
brow = editor.bufferPositionForScreenPosition(editor.getCursorScreenPosition()).row
if editor.isFoldedAtBufferRow(brow)
editor.unfoldBufferRow(brow)
editor.setCursorBufferPosition(row)
editor.scrollToCursorPosition()

Expand Down