diff options
| author | Stephen Blott | 2018-10-06 11:07:38 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2018-10-06 11:07:40 +0100 | 
| commit | 7c77b9bef6720283b04f6253b5e3cec0c7612b15 (patch) | |
| tree | b5a3a78a2e9aeda2eb7784edaae2ca66905613ec | |
| parent | 9f38c2fef8286f0d59e5cd90db821aafdb5a192c (diff) | |
| download | vimium-7c77b9bef6720283b04f6253b5e3cec0c7612b15.tar.bz2 | |
Do not try to findNext unless we actually have query text.
Fixes #3154 (I think).
| -rw-r--r-- | content_scripts/mode_find.coffee | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/content_scripts/mode_find.coffee b/content_scripts/mode_find.coffee index 1e4196d7..c98f256f 100644 --- a/content_scripts/mode_find.coffee +++ b/content_scripts/mode_find.coffee @@ -218,6 +218,11 @@ class FindMode extends Mode      FindMode.saveQuery()    @findNext: (backwards) -> +    # Bail out if we don't have any query text. +    unless FindMode.query.rawQuery and 0 < FindMode.query.rawQuery.length +      HUD.showForDuration "No query to find.", 1000 +      return +      Marks.setPreviousPosition()      FindMode.query.hasResults = FindMode.execute null, {backwards} | 
