allow number input in command line

This commit is contained in:
Martin Stubenschrott committed 2007-09-12 23:49:26 +00:00
1 parent 70c690e411
commit c6b77df92e
2 files changed
+4 -2

No files matched your search

+3 -2
View File
@@ -628,8 +628,9 @@ function Events() //{{{
if ((vimperator.input.buffer + key).match(/^[1-9][0-9]*$/))
{
// no count for insert mode mappings
if (vimperator.hasMode(vimperator.modes.INSERT))
stop = false;
if (vimperator.hasMode(vimperator.modes.INSERT) ||
vimperator.hasMode(vimperator.modes.COMMAND_LINE))
stop = false;
else
vimperator.input.buffer += key;
}