1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 14:27:58 +01:00

fix search highlighting when 'incsearch' is set - Algardas <algardas@gmail.com>

This commit is contained in:
Doug Kearns
2008-12-20 00:31:13 +11:00
parent ad61bc83ff
commit 03fed06b39

View File

@@ -408,11 +408,10 @@ function Search() //{{{
if (!command)
command = lastSearchPattern;
if (!options["incsearch"] || !found)
{
this.clear();
if (!options["incsearch"] || !found)
this.find(command, backwards);
}
lastSearchBackwards = backwards;
//lastSearchPattern = command.replace(backwards ? /\?.*/ : /\/.*/, ""); // XXX