aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Jahns2013-10-02 17:36:04 (EDT)
committeradmin2013-10-02 17:37:26 (EDT)
commit2b47f9c2f9f835035169f8f2c96f99f5af73013a (patch)
tree5cdb466a71442f67d466805553b051e78b348adc
parent8fefc4a4117759741dd5c19a7b6f104b077ae8ff (diff)
downloadorg.eclipse.orion.client-2b47f9c2f9f835035169f8f2c96f99f5af73013a.zip
org.eclipse.orion.client-2b47f9c2f9f835035169f8f2c96f99f5af73013a.tar.gz
org.eclipse.orion.client-2b47f9c2f9f835035169f8f2c96f99f5af73013a.tar.bz2
Bug 418217 - Vi Keybindings - 'e' behavior is incorrect for Vi.--Signed-off-by: Steve Jahns <s.t.jahns@gmail.com>v20131002-2137
-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$