aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorStephen Blott2015-05-09 08:30:29 +0100
committerStephen Blott2015-05-09 08:31:35 +0100
commit6fd0e15b96325222abf1a19886bd5e0fb48fcdbb (patch)
tree61578992f46de2c97e6f7102cb331925c1581c02 /lib
parent8c308d47cc615b9fa0eed47e4ecddd1fd9d125eb (diff)
downloadvimium-6fd0e15b96325222abf1a19886bd5e0fb48fcdbb.tar.bz2
Search completion; refactor SearchCompleter activation.
Diffstat (limited to 'lib')
-rw-r--r--lib/utils.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/utils.coffee b/lib/utils.coffee
index 033fdd2b..4c2a7a14 100644
--- a/lib/utils.coffee
+++ b/lib/utils.coffee
@@ -201,7 +201,8 @@ Function::curry = ->
Array.copy = (array) -> Array.prototype.slice.call(array, 0)
String::startsWith = (str) -> @indexOf(str) == 0
-String::ltrim = () -> @replace /^\s+/, ""
+String::ltrim = -> @replace /^\s+/, ""
+String::rtrim = -> @replace /\s+$/, ""
globalRoot = window ? global
globalRoot.extend = (hash1, hash2) ->