Fix nesting level calculation for children of partially-folded nodes

Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
Max Brunsfeld
2017-12-07 15:30:48 -08:00
committed by Nathan Sobo
parent 136dc86584
commit f712de65d0
3 changed files with 27 additions and 11 deletions

View File

@@ -3891,7 +3891,7 @@ class TextEditor {
// Extended: Fold all foldable lines at the given indent level.
//
// * `level` A {Number}.
// * `level` A {Number} starting at 0.
foldAllAtIndentLevel (level) {
const languageMode = this.buffer.getLanguageMode()
const foldableRanges = (