summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--harpoon.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/harpoon.kak b/harpoon.kak
index 4b2388a..3a8f1c3 100644
--- a/harpoon.kak
+++ b/harpoon.kak
@@ -8,7 +8,7 @@ define-command harpoon-add -docstring "harpoon-add: Add the current file to the
index=$(($index + 1))
if [ "$1" = "$kak_bufname" ]; then
echo "fail %{$kak_quoted_bufname is already harpooned at index $index}"
- return
+ exit
fi
shift
done