diff options
author | Doug Kearns <dougkearns@gmail.com> | 2009-09-30 15:41:49 +1000 |
---|---|---|
committer | Doug Kearns <dougkearns@gmail.com> | 2009-09-30 15:41:49 +1000 |
commit | 422579f6e282b74552aa9e0311646abb719e520d (patch) | |
tree | f9a825293d8946185447408c874cddfc5b718761 /common/content | |
parent | 748eb681675082aeff470890e1503217c6d55e1c (diff) | |
download | pentadactyl-422579f6e282b74552aa9e0311646abb719e520d.tar.gz |
Fix input buffer related hint bugs.
Spurious "null"s in input fields and key event swallowing following f1<Return>
etc.
Diffstat (limited to 'common/content')
-rw-r--r-- | common/content/events.js | 5 |
1 files 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); } }, |