Add missing "times" to Editor.navigateLeft|Right()
This commit is contained in:
parent
1cba46b8d3
commit
252b064d6a
2 changed files with 4 additions and 4 deletions
|
|
@ -167,7 +167,7 @@ canon.addCommand({
|
||||||
});
|
});
|
||||||
canon.addCommand({
|
canon.addCommand({
|
||||||
name: "gotoleft",
|
name: "gotoleft",
|
||||||
exec: function(env, args, request) { env.editor.navigateLeft(); }
|
exec: function(env, args, request) { env.editor.navigateLeft(args.times); }
|
||||||
});
|
});
|
||||||
canon.addCommand({
|
canon.addCommand({
|
||||||
name: "selectwordright",
|
name: "selectwordright",
|
||||||
|
|
@ -191,7 +191,7 @@ canon.addCommand({
|
||||||
});
|
});
|
||||||
canon.addCommand({
|
canon.addCommand({
|
||||||
name: "gotoright",
|
name: "gotoright",
|
||||||
exec: function(env, args, request) { env.editor.navigateRight(); }
|
exec: function(env, args, request) { env.editor.navigateRight(args.times); }
|
||||||
});
|
});
|
||||||
canon.addCommand({
|
canon.addCommand({
|
||||||
name: "selectpagedown",
|
name: "selectpagedown",
|
||||||
|
|
|
||||||
|
|
@ -890,7 +890,7 @@ var Editor =function(renderer, doc) {
|
||||||
this.moveCursorToPosition(selectionStart);
|
this.moveCursorToPosition(selectionStart);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
times = times | 1;
|
times = times || 1;
|
||||||
while (times--) {
|
while (times--) {
|
||||||
this.selection.moveCursorLeft();
|
this.selection.moveCursorLeft();
|
||||||
}
|
}
|
||||||
|
|
@ -904,7 +904,7 @@ var Editor =function(renderer, doc) {
|
||||||
this.moveCursorToPosition(selectionEnd);
|
this.moveCursorToPosition(selectionEnd);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
times = times | 1;
|
times = times || 1;
|
||||||
while (times--) {
|
while (times--) {
|
||||||
this.selection.moveCursorRight();
|
this.selection.moveCursorRight();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue