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:
@@ -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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user