summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAlex Leferry 2 <alexherbo2@gmail.com>2018-03-18 23:25:16 +0100
committerAlex Leferry 2 <alexherbo2@gmail.com>2018-03-18 23:27:18 +0100
commitb799369f7dab8d4d3df3c878ec6c1b72ce36ce58 (patch)
tree133c1ee7bf01175793f5a04b20a5c3ee1fa2dd09 /bin
parent18acf16eafc12a18c99ec0efe7521ccec74ba5af (diff)
Collapse shift commands
Diffstat (limited to 'bin')
-rwxr-xr-xbin/kak-connect3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/kak-connect b/bin/kak-connect
index 1eb3997..b0975f8 100755
--- a/bin/kak-connect
+++ b/bin/kak-connect
@@ -8,8 +8,7 @@ if [ $KAK_SESSION ] && [ $KAK_CLIENT ]; then
target=$(echo $2 | pcregrep --om-separator ' ' --only-matching={1,2} '^[+]([0-9]+)(?::([0-9]+))?$')
if test -n "$target"; then
command="edit $file $target"
- shift
- shift
+ shift 2
fi
fi
for file in "$@"; do