emacs: make code strict conform
This commit is contained in:
parent
ea67201540
commit
54d80d79ab
1 changed files with 8 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue