From 51d68e2ec67a0a86e5c2fd9e82f7cca0e5d4b413 Mon Sep 17 00:00:00 2001 From: Pranav Rao <56097527+pranavrao145@users.noreply.github.com> Date: Thu, 11 Nov 2021 18:40:12 -0500 Subject: [PATCH] fix(tmux): fixed tmux.clear_all function Using ipairs instead of pairs in this function caused it to stop working for some use cases. --- lua/harpoon/tmux.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/harpoon/tmux.lua b/lua/harpoon/tmux.lua index c343269..1229acf 100644 --- a/lua/harpoon/tmux.lua +++ b/lua/harpoon/tmux.lua @@ -144,7 +144,7 @@ end M.clear_all = function() log.trace("tmux: clear_all(): Clearing all tmux windows.") - for _, window in ipairs(tmux_windows) do + for _, window in pairs(tmux_windows) do -- Delete the current tmux window local _, _, _ = utils.get_os_command_output({ "tmux",