diff --git a/addon/fold/foldgutter.js b/addon/fold/foldgutter.js index f101e26709..9d32326566 100644 --- a/addon/fold/foldgutter.js +++ b/addon/fold/foldgutter.js @@ -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]; }