Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Bug 418211] [Editor] Vi Mode - Fixed behavior of o and O. --Signed-o…
…ff-by: Steve Jahns <s.t.jahns@gmail.com>
  • Loading branch information
stjahns committed Sep 27, 2013
1 parent 0f478cd commit 457435d
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -750,11 +750,16 @@ define("orion/editor/vi", [ //$NON-NLS-0$
}, {name: messages.viI});

view.setAction("vi-O", function() { //$NON-NLS-0$
return self._toInsertMode("enter", {insert:"above"}); //$NON-NLS-1$ //$NON-NLS-0$
self._invoke("lineUp"); //$NON-NLS-0$
self._invoke("lineEnd"); //$NON-NLS-0$
self._toInsertMode("enter"); //$NON-NLS-0$
return true;
}, {name: messages.viO});

view.setAction("vi-o", function() { //$NON-NLS-0$
return self._toInsertMode("enter", {insert:"below"}); //$NON-NLS-1$ //$NON-NLS-0$
self._invoke("lineEnd"); //$NON-NLS-0$
self._toInsertMode("enter"); //$NON-NLS-0$
return true;
}, {name: messages.vio});

view.setAction("vi-R", function() { //$NON-NLS-0$
Expand Down

0 comments on commit 457435d

Please sign in to comment.