summaryrefslogtreecommitdiff
path: root/lua/lvim/core/bufferline.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lvim/core/bufferline.lua')
-rw-r--r--lua/lvim/core/bufferline.lua4
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