summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrc/commands/edit8
1 files changed, 4 insertions, 4 deletions
diff --git a/rc/commands/edit b/rc/commands/edit
index 4a89653..33fe0d9 100755
--- a/rc/commands/edit
+++ b/rc/commands/edit
@@ -9,10 +9,10 @@ realpath() {
case "$file" in
/*)
printf '%s' "$file"
- ;;
+ ;;
*)
printf '%s' "$PWD/${file#./}"
- ;;
+ ;;
esac
}
@@ -58,12 +58,12 @@ if test "$KAKOUNE_SESSION" -a "$KAKOUNE_CLIENT"; then
column=${target#*:}
commands="edit %($file) %($line) %($column)"
shift 2
- ;;
+ ;;
+*)
line=${target#+}; line=${line%:*}
commands="edit %($file) %($line)"
shift 2
- ;;
+ ;;
esac
fi
for file do