diff options
| author | Stephen Blott | 2015-05-08 17:53:39 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-05-08 17:54:00 +0100 |
| commit | cf993efaf69fcf3482cf0f54881fcf87f0108a0d (patch) | |
| tree | 27ec3eca38299fc1651d2bfa8d5ce138a41a6b01 /background_scripts/completion_engines.coffee | |
| parent | 21db0f353257e5e7848d9d884ed93e717120e88d (diff) | |
| download | vimium-cf993efaf69fcf3482cf0f54881fcf87f0108a0d.tar.bz2 | |
Search completion; exclusion [WIP].
Diffstat (limited to 'background_scripts/completion_engines.coffee')
| -rw-r--r-- | background_scripts/completion_engines.coffee | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/background_scripts/completion_engines.coffee b/background_scripts/completion_engines.coffee index ff10f4b5..badae126 100644 --- a/background_scripts/completion_engines.coffee +++ b/background_scripts/completion_engines.coffee @@ -165,10 +165,8 @@ CompletionEngines = @mostRecentHandler = null query = queryTerms.join "" - # We don't complete less then three characters: the results are usually useless. This also prevents - # one- and two-character custom search engine keywords from being sent to the default completer (e.g. - # the initial "w" before typing "w something" for Wikipedia). - return callback [] unless 3 <= query.length + # We don't complete single characters: the results are usually useless. + return callback [] unless 1 < query.length # We don't complete regular URLs or Javascript URLs. return callback [] if 1 == queryTerms.length and Utils.isUrl query |
