refactor: replace vim.uv.* asserts with warn-and-bail

This commit is contained in:
2026-05-02 22:45:24 +02:00
parent 9568fc63a3
commit 8bd674622e
3 changed files with 32 additions and 8 deletions
+2 -2
View File
@@ -58,8 +58,8 @@ local function delete_buffer(force)
if #buffers < 2 then
return
end
local b1 = assert(buffers[1])
local b2 = assert(buffers[2])
local b1 = buffers[1] --[[@as -nil]]
local b2 = buffers[2] --[[@as -nil]]
local current = tonumber(b1:match("^%s*(%d+)")) --[[@as integer?]]
local previous = tonumber(b2:match("^%s*(%d+)")) --[[@as integer?]]