summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraiguard <caleb.heuer@gmail.com>2021-12-12 20:21:57 -0700
committerraiguard <caleb.heuer@gmail.com>2021-12-12 20:21:57 -0700
commit9eef47fa0ec8b44884ad93660f5a1d60f3c11991 (patch)
tree01dbb74ea4537cbf23028de7f10a30c2b35b3b03
parent9f81790371fcae1642af7f6167023c5281d76feb (diff)
Fix harpoon-remove param definitions
-rw-r--r--harpoon.kak4
1 files changed, 2 insertions, 2 deletions
diff --git a/harpoon.kak b/harpoon.kak
index 309452f..b2e1d29 100644
--- a/harpoon.kak
+++ b/harpoon.kak
@@ -43,11 +43,11 @@ define-command -params ..1 -docstring "Add the current file to the list at the i
}
}
-define-command -params 1 -docstring "Remove the file at the specified index" harpoon-remove %{
+define-command -params ..1 -docstring "Remove the file at the specified index" harpoon-remove %{
lua %arg{1} %{
local index = args()
if not index or #index == 0 then
- kak.set_option("global", "harpoon_buffers" "")
+ kak.set_option("global", "harpoon_buffers")
else
kak.set_option("-remove", "global", "harpoon_buffers", index.."=foo")
end