mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-28 01:12:36 +01:00
allow number input in command line
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user