mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 12:37:58 +01:00
fix search highlighting when 'incsearch' is set - Algardas <algardas@gmail.com>
This commit is contained in:
@@ -408,11 +408,10 @@ function Search() //{{{
|
|||||||
if (!command)
|
if (!command)
|
||||||
command = lastSearchPattern;
|
command = lastSearchPattern;
|
||||||
|
|
||||||
|
this.clear();
|
||||||
|
|
||||||
if (!options["incsearch"] || !found)
|
if (!options["incsearch"] || !found)
|
||||||
{
|
|
||||||
this.clear();
|
|
||||||
this.find(command, backwards);
|
this.find(command, backwards);
|
||||||
}
|
|
||||||
|
|
||||||
lastSearchBackwards = backwards;
|
lastSearchBackwards = backwards;
|
||||||
//lastSearchPattern = command.replace(backwards ? /\?.*/ : /\/.*/, ""); // XXX
|
//lastSearchPattern = command.replace(backwards ? /\?.*/ : /\/.*/, ""); // XXX
|
||||||
|
|||||||
Reference in New Issue
Block a user