mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(bufremove): fix Cancel
This commit is contained in:
parent
ff1b44e676
commit
b282570c18
1 changed files with 1 additions and 1 deletions
|
|
@ -231,7 +231,7 @@ function M.bufremove(buf)
|
|||
|
||||
if vim.bo.modified then
|
||||
local choice = vim.fn.confirm(("Save changes to %q?"):format(vim.fn.bufname()), "&Yes\n&No\n&Cancel")
|
||||
if choice == 0 then -- Cancel
|
||||
if choice == 0 or choice == 3 then -- 0 for <Esc>/<C-c> and 3 for Cancel
|
||||
return
|
||||
end
|
||||
if choice == 1 then -- Yes
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue