From 3b6130f5e452fadad93c0d8dc5747aaf51cf4172 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Wed, 29 Jul 2020 17:28:09 +0100 Subject: [PATCH] updates urlencode to work better with vim --- bin/.bin/urlencode | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/.bin/urlencode b/bin/.bin/urlencode index 2a867dab..4e4c9ce1 100755 --- a/bin/.bin/urlencode +++ b/bin/.bin/urlencode @@ -19,7 +19,7 @@ urlencodespecial() { string="$1" if [ -z "$string" ]; then - string="$(cat)" + string="$(cat - | sed 's/^ //')" # For some reason, vim likes to add a space to the begining fi #URL