Skip to content

Commit 784d4d9

Browse files
author
Mohsen Azimi
committed
Unfold deep.
1 parent d6a377c commit 784d4d9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/scripts/services/editor.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ function Editor() {
100100
}
101101

102102
function removeFold(start) {
103-
editor.getSession().unfold(start);
103+
// TODO: Depth of unfolding is hard-coded to 100 but we need
104+
// to have depth as a parameter and/or having smarter way of
105+
// handling subfolds
106+
editor.getSession().unfold(start, 100);
104107
}
105108

106109
this.getValue = getValue;

0 commit comments

Comments
 (0)