1
0
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:
Doug Kearns
2007-08-16 16:01:53 +00:00
parent a869261bba
commit df002ee788

View File

@@ -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();