mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-24 21:23:33 +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))
|
|| (/^[0-9]$/.test(key) && !hints.escNumbers))
|
||||||
{
|
{
|
||||||
hints.onEvent(event);
|
hints.onEvent(event);
|
||||||
input.buffer = null;
|
input.buffer = "";
|
||||||
return void killEvent();
|
return void killEvent();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1674,8 +1674,7 @@ function Events() //{{{
|
|||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
let motionMap = (input.pendingMotionMap && input.pendingMotionMap.names[0]) || "";
|
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