aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Crosby2013-07-19 23:02:57 -0700
committerPhil Crosby2013-07-19 23:02:57 -0700
commit99beda947d82524f58c34535fbfbb7f81dc6fae1 (patch)
tree2cd0228806d012f512c4053fe36b822d5fc9c64f
parent9723d0eeeceaac3bd59643f8e48db809ac295691 (diff)
parent1ab0acf73d185129c7891ffed7c0438e38ec80db (diff)
downloadvimium-99beda947d82524f58c34535fbfbb7f81dc6fae1.tar.bz2
Merge pull request #884 from UncleBill/trim
trim then filter
-rw-r--r--content_scripts/vimium_frontend.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 676014f5..8ce28382 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -804,12 +804,12 @@ findAndFollowRel = (value) ->
window.goPrevious = ->
previousPatterns = settings.get("previousPatterns") || ""
- previousStrings = previousPatterns.split(",").filter((s) -> s.length)
+ previousStrings = previousPatterns.split(",").filter( (s) -> s.trim().length )
findAndFollowRel("prev") || findAndFollowLink(previousStrings)
window.goNext = ->
nextPatterns = settings.get("nextPatterns") || ""
- nextStrings = nextPatterns.split(",").filter((s) -> s.length)
+ nextStrings = nextPatterns.split(",").filter( (s) -> s.trim().length )
findAndFollowRel("next") || findAndFollowLink(nextStrings)
showFindModeHUDForQuery = ->