mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 10:57:58 +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:
@@ -1065,7 +1065,8 @@ const Events = Module("events", {
|
||||
}
|
||||
finally {
|
||||
let motionMap = (this._input.pendingMotionMap && this._input.pendingMotionMap.names[0]) || "";
|
||||
statusline.updateInputBuffer(motionMap + this._input.buffer);
|
||||
if (!(modes.extended & modes.HINTS))
|
||||
statusline.updateInputBuffer(motionMap + this._input.buffer);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -836,7 +836,7 @@ const Hints = Module("hints", {
|
||||
this._hintNumber = parseInt(key, 10);
|
||||
}
|
||||
else
|
||||
this._hintNumber = (this._hintNumber * 10) + parseInt(key, 10);
|
||||
this._hintNumber = parseInt(String(this._hintNumber) + key, 10);
|
||||
|
||||
this._updateStatusline();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user