From 03fed06b39c36357858f1b45f7b9e51d6f838ce7 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 20 Dec 2008 00:31:13 +1100 Subject: [PATCH] fix search highlighting when 'incsearch' is set - Algardas --- common/content/find.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/content/find.js b/common/content/find.js index 41b15599..923426f5 100644 --- a/common/content/find.js +++ b/common/content/find.js @@ -408,11 +408,10 @@ function Search() //{{{ if (!command) command = lastSearchPattern; + this.clear(); + if (!options["incsearch"] || !found) - { - this.clear(); this.find(command, backwards); - } lastSearchBackwards = backwards; //lastSearchPattern = command.replace(backwards ? /\?.*/ : /\/.*/, ""); // XXX