Skip to content
Snippets Groups Projects
Commit 431dd1b1 authored by Sam Wilson's avatar Sam Wilson Committed by Marijn Haverbeke
Browse files

[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.
parent bda854e0
No related branches found
No related tags found
No related merge requests found
......@@ -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];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment