From c7e50cefe0dbce2266994e4cd6e078ea1eb5fd6e Mon Sep 17 00:00:00 2001 From: keforbes Date: Tue, 29 May 2012 19:44:35 -0600 Subject: [PATCH] Off-by-one error. Totally my fault. --- .../vrapper/vim/modes/commandline/AbstractCommandParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/modes/commandline/AbstractCommandParser.java b/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/modes/commandline/AbstractCommandParser.java index 7b631f9db..243207f87 100644 --- a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/modes/commandline/AbstractCommandParser.java +++ b/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/modes/commandline/AbstractCommandParser.java @@ -79,7 +79,7 @@ public void type(KeyStroke e) { if (position < buffer.length()) position++; } else if (e.equals(KEY_LEFT)) { - if (position > 0) + if (position > 1) position--; } else { buffer.insert(position, e.getCharacter());