1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-10 10:05:46 +01:00

Push location stack on //?/n/N/[/].

This commit is contained in:
Kris Maglione
2011-08-11 03:44:22 -04:00
parent a5c442150b
commit d877fa5fea
4 changed files with 27 additions and 14 deletions

View File

@@ -45,6 +45,7 @@ var RangeFinder = Module("rangefinder", {
get options() this.modules.options,
openPrompt: function (mode) {
this.modules.marks.push();
this.commandline;
this.CommandMode(mode).open();
@@ -103,6 +104,7 @@ var RangeFinder = Module("rangefinder", {
},
find: function (pattern, backwards) {
this.modules.marks.push();
let str = this.bootstrap(pattern, backwards);
if (!this.rangeFind.find(str))
this.dactyl.echoerr(_("finder.notFound", pattern),
@@ -112,6 +114,7 @@ var RangeFinder = Module("rangefinder", {
},
findAgain: function (reverse) {
this.modules.marks.push();
if (!this.rangeFind)
this.find(this.lastFindPattern);
else if (!this.rangeFind.find(null, reverse))