From 431dd1b16818c2516c9cbbf5d957189881283ac6 Mon Sep 17 00:00:00 2001 From: Sam Wilson Date: Thu, 2 Jun 2016 15:37:46 -0400 Subject: [PATCH] [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. --- addon/fold/foldgutter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; }