mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 09:12:28 +01:00
reset vimperator.input.buffer before executing mappings that may add more key
events to the event buffer
This commit is contained in:
@@ -519,11 +519,12 @@ function Events() //{{{
|
||||
|
||||
if (vimperator.input.pendingMap)
|
||||
{
|
||||
vimperator.input.buffer = "";
|
||||
|
||||
if (key != "<Esc>" && key != "<C-[>")
|
||||
vimperator.input.pendingMap.execute(null, vimperator.input.count, key);
|
||||
|
||||
vimperator.input.pendingMap = null;
|
||||
vimperator.input.buffer = "";
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
}
|
||||
@@ -539,8 +540,8 @@ function Events() //{{{
|
||||
}
|
||||
else
|
||||
{
|
||||
map.execute(null, vimperator.input.count);
|
||||
vimperator.input.buffer = "";
|
||||
map.execute(null, vimperator.input.count);
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user