From 847bfa4bfe497029a2e83020d89beb4b7b763c31 Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 19 Jan 2015 01:13:05 +0400 Subject: [PATCH] cleanup --- lib/ace/commands/default_commands.js | 2 +- lib/ace/edit_session/folding.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ace/commands/default_commands.js b/lib/ace/commands/default_commands.js index c5d34aae..d018e8bd 100644 --- a/lib/ace/commands/default_commands.js +++ b/lib/ace/commands/default_commands.js @@ -415,7 +415,7 @@ exports.commands = [{ readOnly: true }, { name: "passKeysToBrowser", - bindKey: bindKey("null", "null"), + bindKey: bindKey(null, null), exec: function() {}, passEvent: true, readOnly: true diff --git a/lib/ace/edit_session/folding.js b/lib/ace/edit_session/folding.js index a86c27ce..53071dda 100644 --- a/lib/ace/edit_session/folding.js +++ b/lib/ace/edit_session/folding.js @@ -794,7 +794,7 @@ function Folding() { this.foldAll(startRow, endRow, options.all ? 10000 : 0); } else if (options.children) { endRow = range ? range.end.row : this.getLength(); - this.foldAll(row + 1, range.end.row, options.all ? 10000 : 0); + this.foldAll(row + 1, endRow, options.all ? 10000 : 0); } else if (range) { if (options.all) range.collapseChildren = 10000;