diff options
| author | Stephen Blott | 2015-02-01 14:20:01 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-02-01 14:20:01 +0000 |
| commit | 4d4bdb65d3f5b1e09fe8a55593bc57215da9a4e5 (patch) | |
| tree | d2033802222195a13cc3204868a7d523aa40447f /content_scripts | |
| parent | 332eaaa85291c9b9c5fa0cf26f44ff5edf1a7c05 (diff) | |
| download | vimium-4d4bdb65d3f5b1e09fe8a55593bc57215da9a4e5.tar.bz2 | |
Find-mode history, tweaks.
Diffstat (limited to 'content_scripts')
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index b77e5606..b76f2663 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -673,8 +673,8 @@ FindModeHistory = recordQuery: (query) -> @migration() - recentQueries = settings.get "findModeRawQueryList" - if 0 < query?.length + if 0 < query.length + recentQueries = settings.get "findModeRawQueryList" settings.set "findModeRawQueryList", ([ query ].concat recentQueries.filter (q) -> q != query)[0..50] # Migration (from 1.49, 2015/2/1). |
