mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-07 06:55:45 +01:00
Fix input buffer related hint bugs.
Spurious "null"s in input fields and key event swallowing following f1<Return> etc.
This commit is contained in:
@@ -1547,7 +1547,7 @@ function Events() //{{{
|
||||
|| (/^[0-9]$/.test(key) && !hints.escNumbers))
|
||||
{
|
||||
hints.onEvent(event);
|
||||
input.buffer = null;
|
||||
input.buffer = "";
|
||||
return void killEvent();
|
||||
}
|
||||
|
||||
@@ -1674,8 +1674,7 @@ function Events() //{{{
|
||||
finally
|
||||
{
|
||||
let motionMap = (input.pendingMotionMap && input.pendingMotionMap.names[0]) || "";
|
||||
if (input.buffer !== null)
|
||||
statusline.updateInputBuffer(motionMap + input.buffer);
|
||||
statusline.updateInputBuffer(motionMap + input.buffer);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user