From 422579f6e282b74552aa9e0311646abb719e520d Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 30 Sep 2009 15:41:49 +1000 Subject: [PATCH] Fix input buffer related hint bugs. Spurious "null"s in input fields and key event swallowing following f1 etc. --- common/content/events.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/content/events.js b/common/content/events.js index 5d76c2dd..f2898887 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -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); } },