mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-14 04:35:45 +01:00
Make :yank :extensions work as expected.
This commit is contained in:
@@ -803,8 +803,8 @@ var CompletionContext = Class("CompletionContext", {
|
||||
*/
|
||||
wait: function wait(interruptable, timeout) {
|
||||
let end = Date.now() + timeout;
|
||||
while (this.incomplete && (!timeout || Date.now() > end))
|
||||
util.threadYield(false, interruptable);
|
||||
util.waitFor(function () !this.incomplete || (this.timeout && Date.now() > end),
|
||||
this);
|
||||
return this.incomplete;
|
||||
}
|
||||
}, {
|
||||
|
||||
Reference in New Issue
Block a user