diff options
| -rwxr-xr-x | rc/paths/commands/:edit | 6 |
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" ;; |
