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
This commit is contained in:
dlond 2025-08-20 14:43:53 +12:00 committed by Daniel Lond
parent f755e49d66
commit b2047723b9
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ vim.api.nvim_create_autocmd('VimLeavePre', {
2 2
) )
if choice ~= 1 then if choice ~= 1 then
vim.cmd('cquit!') return
end end
end end
end, end,