Skip to content

Commit 431dd1b

Browse files
Sam Wilsonmarijnh
authored andcommitted
[foldcode addon] Change arrow appearance when a single line is collapsed
Use findMarks instead of findMarksAt in foldGutter.js to correctly find marks when a single line is collapsed so that the arrow displays correctly as collapsed.
1 parent bda854e commit 431dd1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/fold/foldgutter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
}
5151

5252
function isFolded(cm, line) {
53-
var marks = cm.findMarksAt(Pos(line));
53+
var marks = cm.findMarks(Pos(line, 0), Pos(line + 1, 0));
5454
for (var i = 0; i < marks.length; ++i)
5555
if (marks[i].__isFold && marks[i].find().from.line == line) return marks[i];
5656
}

0 commit comments

Comments
 (0)