From 3f123b19a6b07f5ede17b7c953a99381cdf8d96d Mon Sep 17 00:00:00 2001 From: nightwing Date: Thu, 15 Dec 2011 21:48:15 +0400 Subject: [PATCH] shift click should add subfolds until document end if foldWidgetRange is null --- lib/ace/edit_session/folding.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ace/edit_session/folding.js b/lib/ace/edit_session/folding.js index 9805df41..3147b84e 100644 --- a/lib/ace/edit_session/folding.js +++ b/lib/ace/edit_session/folding.js @@ -725,6 +725,8 @@ function Folding() { if (addSubfolds) this.foldAll(range.start.row + 1, range.end.row); } else { + if (addSubfolds) + this.foldAll(row + 1, this.getLength()); e.target.className += " invalid" } };