Fixed none complete keysequence on "<Esc>.
authorDaniel Carl <danielcarl@gmx.de>
Wed, 19 Nov 2014 22:55:10 +0000 (23:55 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Wed, 19 Nov 2014 22:55:10 +0000 (23:55 +0100)
If " is typed in normal mode vimb expects a register char so that the " is
show in showcmd section of the statubar. All following next none register
chars are appended to the key sequence so that the command is not ready to
performed.
This patch switch back to starting parser state if the char after the " is no
valid register.

src/normal.c

index 779bfac..9d78f63 100644 (file)
@@ -280,6 +280,8 @@ VbResult normal_keypress(int key)
             if (strchr(VB_REG_CHARS, key)) {
                 info.cutbuf = key;
                 info.phase  = PHASE_START;
+            } else {
+                info.phase = PHASE_COMPLETE;
             }
             break;