Skip to content

Commit

Permalink
[foldcode addon] Change arrow appearance when a single line is collapsed
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Sam Wilson authored and marijnh committed Jun 3, 2016
1 parent bda854e commit 431dd1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/fold/foldgutter.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
}

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

0 comments on commit 431dd1b

Please sign in to comment.