Skip to content

Commit bc2e0d3

Browse files
committed
Merge pull request #160 from zklinger/sanitize-history-fix
sanitize history: Remove ':open', ':tabopen' and ':winopen' command-line...
2 parents 8526863 + e9c839f commit bc2e0d3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

common/content/commandline.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,10 +1094,9 @@ const CommandLine = Module("commandline", {
10941094
if (liberator.has("sanitizer") && (timespan || options["sanitizetimespan"]))
10951095
range = sanitizer.getClearRange(timespan || options["sanitizetimespan"]);
10961096

1097-
const self = this;
10981097
this.store.mutate("filter", function (item) {
10991098
let timestamp = (item.timestamp || Date.now()/1000) * 1000;
1100-
return !line.privateData || timestamp < self.range[0] || timestamp > self.range[1];
1099+
return !item.privateData || timestamp < range[0] || timestamp > range[1];
11011100
});
11021101
},
11031102
/**

0 commit comments

Comments
 (0)