diff options
author | LostNeophyte <[email protected]> | 2022-11-27 14:18:49 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-11-27 14:18:49 +0100 |
commit | 1fbcaf81dc85ae2f3c6ea108557920e1741452ad (patch) | |
tree | 1586970e98a08c13bb8e0dc41bfd6c0890c1a297 /lua/lvim/core/bufferline.lua | |
parent | 731a3915e1c41fe3bde10c168eccb49adf491553 (diff) |
fix(bufkill): wait for user's input (#3535)
Diffstat (limited to 'lua/lvim/core/bufferline.lua')
-rw-r--r-- | lua/lvim/core/bufferline.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/lvim/core/bufferline.lua b/lua/lvim/core/bufferline.lua index 2bc366fc..b6acadec 100644 --- a/lua/lvim/core/bufferline.lua +++ b/lua/lvim/core/bufferline.lua @@ -194,9 +194,9 @@ function M.buf_kill(kill_command, bufnr, force) vim.ui.input({ prompt = string.format([[%s. Close it anyway? [y]es or [n]o (default: no): ]], warning), }, function(choice) - if choice ~= nil and choice:match "ye?s?" then force = true end + if choice ~= nil and choice:match "ye?s?" then M.buf_kill(kill_command, bufnr, true) end end) - if not force then return end + return end end |