From 54d80d79ab723f0b5f040f72d2df9d15c2b4724a Mon Sep 17 00:00:00 2001 From: Robert Krahn Date: Tue, 4 Nov 2014 13:01:49 -0800 Subject: [PATCH] emacs: make code strict conform --- lib/ace/keyboard/emacs.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/ace/keyboard/emacs.js b/lib/ace/keyboard/emacs.js index b1543894..272071d1 100644 --- a/lib/ace/keyboard/emacs.js +++ b/lib/ace/keyboard/emacs.js @@ -444,10 +444,6 @@ exports.handler.addCommands({ // in multi select mode, ea selection is handled individually if (args && args.count) { - function moveToMark() { - var mark = editor.popEmacsMark(); - mark && editor.moveCursorToPosition(mark); - } if (editor.inMultiSelectMode) editor.forEachSelection({exec: moveToMark}); else moveToMark(); return; @@ -473,6 +469,14 @@ exports.handler.addCommands({ editor.setEmacsMark(rangePositions[rangePositions.length-1]); return; } + + // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- + + function moveToMark() { + var mark = editor.popEmacsMark(); + mark && editor.moveCursorToPosition(mark); + } + }, readOnly: true, handlesCount: true,