aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Jahns2013-10-02 13:54:47 (EDT)
committeradmin2013-10-02 13:55:12 (EDT)
commita4a12dea90367c3f08f760648f994b602900c86c (patch)
treed72c76c07f36f0088fb3104246955d051875c71f
parentfda767b641f71bde9093e249381e4ac2170bbcd5 (diff)
downloadorg.eclipse.orion.client-a4a12dea90367c3f08f760648f994b602900c86c.zip
org.eclipse.orion.client-a4a12dea90367c3f08f760648f994b602900c86c.tar.gz
org.eclipse.orion.client-a4a12dea90367c3f08f760648f994b602900c86c.tar.bz2
[Bug 418211] [Editor] Vi Mode - Fixed behavior of o and O.--Signed-off-by: Steve Jahns <s.t.jahns@gmail.com>
-rw-r--r--bundles/org.eclipse.orion.client.editor/web/orion/editor/vi.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/bundles/org.eclipse.orion.client.editor/web/orion/editor/vi.js b/bundles/org.eclipse.orion.client.editor/web/orion/editor/vi.js
index 90bd206..20fe209 100644
--- a/bundles/org.eclipse.orion.client.editor/web/orion/editor/vi.js
+++ b/bundles/org.eclipse.orion.client.editor/web/orion/editor/vi.js
@@ -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$