1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 07:02:38 +01:00

allow number input in command line

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

View File

@@ -14,6 +14,7 @@
* Paulo Tanimoto
* Nathan Saper
* Albert Menkveld
* Ian Taylor
I want to say a big <b>THANK YOU</b> for all people which supported this project in this way.
</pre>

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;
}