Make navigate{Down,Up} respect its 'times' arg
This commit is contained in:
parent
72e15f693c
commit
70a48ad60e
1 changed files with 4 additions and 2 deletions
|
|
@ -818,12 +818,14 @@ var Editor =function(renderer, session) {
|
||||||
|
|
||||||
this.navigateUp = function(times) {
|
this.navigateUp = function(times) {
|
||||||
this.selection.clearSelection();
|
this.selection.clearSelection();
|
||||||
this.selection.moveCursorBy(-1, 0);
|
times = times || 1;
|
||||||
|
this.selection.moveCursorBy(-times, 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.navigateDown = function(times) {
|
this.navigateDown = function(times) {
|
||||||
this.selection.clearSelection();
|
this.selection.clearSelection();
|
||||||
this.selection.moveCursorBy(1, 0);
|
times = times || 1;
|
||||||
|
this.selection.moveCursorBy(times, 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.navigateLeft = function(times) {
|
this.navigateLeft = function(times) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue