1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 21:28:00 +01:00

Fix hint statusline buffer. I can't stand all of this special case spaghetty code event handling mess.

This commit is contained in:
Kris Maglione
2009-11-09 10:20:31 -05:00
parent b9d1d7ba46
commit e73b128cab
2 changed files with 3 additions and 2 deletions

View File

@@ -1065,6 +1065,7 @@ const Events = Module("events", {
} }
finally { finally {
let motionMap = (this._input.pendingMotionMap && this._input.pendingMotionMap.names[0]) || ""; let motionMap = (this._input.pendingMotionMap && this._input.pendingMotionMap.names[0]) || "";
if (!(modes.extended & modes.HINTS))
statusline.updateInputBuffer(motionMap + this._input.buffer); statusline.updateInputBuffer(motionMap + this._input.buffer);
} }
}, },

View File

@@ -836,7 +836,7 @@ const Hints = Module("hints", {
this._hintNumber = parseInt(key, 10); this._hintNumber = parseInt(key, 10);
} }
else else
this._hintNumber = (this._hintNumber * 10) + parseInt(key, 10); this._hintNumber = parseInt(String(this._hintNumber) + key, 10);
this._updateStatusline(); this._updateStatusline();