diff --git a/lua/fittencode/views/chat.lua b/lua/fittencode/views/chat.lua index 5377e1e0..8a187663 100644 --- a/lua/fittencode/views/chat.lua +++ b/lua/fittencode/views/chat.lua @@ -71,7 +71,7 @@ end local stack = {} local function push_stack(x) - if #stack == 0 or stack[#stack] ~= x then + if #stack == 0 then table.insert(stack, x) else table.remove(stack)