summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Bauer <vbauerster@gmail.com>2020-08-18 13:07:37 +0500
committerVladimir Bauer <vbauerster@gmail.com>2020-08-18 13:07:37 +0500
commitb42fecf0c44fc6ac7cde416c14047358e00182c6 (patch)
tree7859f78a219b0e17e94dec3359112caf9935083b
parent6e7d0341de360a0ffa889c9f00c27ff301a60944 (diff)
fix #25
-rwxr-xr-xrc/paths/commands/:edit6
1 files changed, 3 insertions, 3 deletions
diff --git a/rc/paths/commands/:edit b/rc/paths/commands/:edit
index 65c26d9..15afe39 100755
--- a/rc/paths/commands/:edit
+++ b/rc/paths/commands/:edit
@@ -10,18 +10,18 @@ commands=$(
while [ "$1" ]; do
file=$(realpath "$1")
case "$2" in
- '+'*':'*)
+ ('+'*':'*)
line=${2#+}; line=${line%:*}
column=${2#*:}
shift 2
kak_escape edit "$file" "$line" "$column"
;;
- '+'*)
+ ('+'*)
line=${2#+}
shift 2
kak_escape edit "$file" "$line"
;;
- *)
+ (*)
shift 1
kak_escape edit "$file"
;;