diff options
Diffstat (limited to 'lua/lvim/core/bufferline.lua')
-rw-r--r-- | lua/lvim/core/bufferline.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lvim/core/bufferline.lua b/lua/lvim/core/bufferline.lua index a9b35cff..2bc366fc 100644 --- a/lua/lvim/core/bufferline.lua +++ b/lua/lvim/core/bufferline.lua @@ -194,7 +194,7 @@ 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:match "ye?s?" then force = true end + if choice ~= nil and choice:match "ye?s?" then force = true end end) if not force then return end end |