mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-13 12:25:47 +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)
|
if (vimperator.input.pendingMap)
|
||||||
{
|
{
|
||||||
|
vimperator.input.buffer = "";
|
||||||
|
|
||||||
if (key != "<Esc>" && key != "<C-[>")
|
if (key != "<Esc>" && key != "<C-[>")
|
||||||
vimperator.input.pendingMap.execute(null, vimperator.input.count, key);
|
vimperator.input.pendingMap.execute(null, vimperator.input.count, key);
|
||||||
|
|
||||||
vimperator.input.pendingMap = null;
|
vimperator.input.pendingMap = null;
|
||||||
vimperator.input.buffer = "";
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
}
|
}
|
||||||
@@ -539,8 +540,8 @@ function Events() //{{{
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
map.execute(null, vimperator.input.count);
|
|
||||||
vimperator.input.buffer = "";
|
vimperator.input.buffer = "";
|
||||||
|
map.execute(null, vimperator.input.count);
|
||||||
}
|
}
|
||||||
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|||||||
Reference in New Issue
Block a user