summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorSteve Jahns2013-10-02 17:36:04 (EDT)
committer admin2013-10-02 17:37:26 (EDT)
commit8638cd4a4615cb8d208d73bb19fd9183f9a28bc4 (patch)
treec4906be4018c23403c9296e131f15679f29ecef2
parent1c4b16fab6c25a9974ba61253cfe95f27d696bc7 (diff)
downloadorg.eclipse.orion.client-8638cd4a4615cb8d208d73bb19fd9183f9a28bc4.zip
org.eclipse.orion.client-8638cd4a4615cb8d208d73bb19fd9183f9a28bc4.tar.gz
org.eclipse.orion.client-8638cd4a4615cb8d208d73bb19fd9183f9a28bc4.tar.bz2
Bug 418217 - Vi Keybindings - 'e' behavior is incorrect for Vi.--Signed-off-by: Steve Jahns <s.t.jahns@gmail.com>
-rw-r--r--bundles/org.eclipse.orion.client.editor/web/orion/editor/vi.js5
1 files changed, 4 insertions, 1 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 20fe209..2fec09f 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
@@ -209,7 +209,10 @@ define("orion/editor/vi", [ //$NON-NLS-0$
}, this._msg("viB")); //$NON-NLS-0$
view.setAction("vi" + key + "e", function() { //$NON-NLS-1$ //$NON-NLS-0$
- return self._invoke("wordNext", {unit: "wordend"}); //$NON-NLS-1$ //$NON-NLS-0$
+ self._invoke("charNext", {unit: "character"}); //$NON-NLS-1$ //$NON-NLS-0$
+ self._invoke("wordNext", {unit: "wordend"}); //$NON-NLS-1$ //$NON-NLS-0$
+ self._invoke("charPrevious", {unit: "character"}); //$NON-NLS-1$ //$NON-NLS-0$
+ return true;
}, this._msg("vie")); //$NON-NLS-0$
view.setAction("vi" + key + "E", function() { //$NON-NLS-1$ //$NON-NLS-0$