diff options
| author | Stephen Blott | 2015-06-26 11:00:58 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-06-26 11:01:16 +0100 |
| commit | 6637d09d4043154bdf37a063137f4074a1dc3239 (patch) | |
| tree | a5549bd47714fdcbeefe1cbac970a9153332eef0 | |
| parent | d9e8da958d55de5c8880b336255cf8987986be93 (diff) | |
| download | vimium-6637d09d4043154bdf37a063137f4074a1dc3239.tar.bz2 | |
Fix oversight from #1693.
(We need to use "this" inside this function.)
| -rw-r--r-- | content_scripts/mode_find.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content_scripts/mode_find.coffee b/content_scripts/mode_find.coffee index d7c628be..9b47cfbd 100644 --- a/content_scripts/mode_find.coffee +++ b/content_scripts/mode_find.coffee @@ -101,7 +101,7 @@ class FindMode extends Mode # character. here we grep for the relevant escape sequences. @query.isRegex = Settings.get 'regexFindMode' hasNoIgnoreCaseFlag = false - @query.parsedQuery = @query.rawQuery.replace /(\\{1,2})([rRI]?)/g, (match, slashes, flag) -> + @query.parsedQuery = @query.rawQuery.replace /(\\{1,2})([rRI]?)/g, (match, slashes, flag) => return match if flag == "" or slashes.length != 1 switch (flag) when "r" |
