mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 19:54:12 +01:00
Precompute completion string matching function.
This commit is contained in:
4
common/content/io.js
Executable file → Normal file
4
common/content/io.js
Executable file → Normal file
@@ -314,7 +314,7 @@ lookup:
|
||||
*/
|
||||
source: function (filename, silent) {
|
||||
let wasSourcing = this.sourcing;
|
||||
dactyl.dump("sourcing " + filename);
|
||||
defmodule.loadLog.push("sourcing " + filename);
|
||||
let time = Date.now();
|
||||
try {
|
||||
var file = io.File(filename);
|
||||
@@ -432,7 +432,7 @@ lookup:
|
||||
dactyl.echoerr(message);
|
||||
}
|
||||
finally {
|
||||
dactyl.dump("done sourcing " + filename + ": " + (Date.now() - time) + "ms");
|
||||
defmodule.loadLog.push("done sourcing " + filename + ": " + (Date.now() - time) + "ms");
|
||||
this.sourcing = wasSourcing;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user