1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-13 16:25:45 +01:00

Fix rangefinder search history issue.

This commit is contained in:
Kris Maglione
2011-03-12 12:18:26 -05:00
parent 71d9a51442
commit 9ba3635bc1
4 changed files with 17 additions and 13 deletions

View File

@@ -132,6 +132,10 @@ var RangeFinder = Module("rangefinder", {
}
},
onHistory: function () {
this.rangeFind.found = false;
},
onSubmit: function (command) {
if (!this.options["incfind"] || !this.rangeFind || !this.rangeFind.found) {
this.clear();
@@ -200,6 +204,7 @@ var RangeFinder = Module("rangefinder", {
get onCancel() modules.rangefinder.closure.onCancel,
get onChange() modules.rangefinder.closure.onChange,
get onHistory() modules.rangefinder.closure.onHistory,
get onSubmit() modules.rangefinder.closure.onSubmit
});
},