From b2047723b9b5974b391f4c2e507bb19db4b1b0cc Mon Sep 17 00:00:00 2001 From: dlond Date: Wed, 20 Aug 2025 14:43:53 +1200 Subject: [PATCH] Fix tmux quit warning logic bug Replace `cquit!` with `return` when user chooses 'No' to properly prevent nvim from quitting in shared tmux sessions. Previously, clicking 'No' would still force quit nvim due to the inverted logic using `cquit!` command. Resolves #8 --- lua/custom/options.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/custom/options.lua b/lua/custom/options.lua index 1c6c7ba7..c16cd476 100644 --- a/lua/custom/options.lua +++ b/lua/custom/options.lua @@ -53,7 +53,7 @@ vim.api.nvim_create_autocmd('VimLeavePre', { 2 ) if choice ~= 1 then - vim.cmd('cquit!') + return end end end,