emacs: make code strict conform

This commit is contained in:
Robert Krahn 2014-11-04 13:01:49 -08:00
commit 54d80d79ab

View file

@ -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,