mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-21 23:14:54 +01:00
fix: 0 is truthy in lua????
This commit is contained in:
parent
9ea2827277
commit
db56df9c58
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ local ticks = {}
|
||||||
---@param content? string if provided, set this content after attaching
|
---@param content? string if provided, set this content after attaching
|
||||||
---@param nowait? boolean skip waiting for initial content sync
|
---@param nowait? boolean skip waiting for initial content sync
|
||||||
local function attach(name, buffer, content, nowait)
|
local function attach(name, buffer, content, nowait)
|
||||||
if vim.fn.bufexists(name) then
|
if vim.fn.bufexists(name) == 1 then
|
||||||
error("buffer '" .. name .. "' already exists!")
|
error("buffer '" .. name .. "' already exists!")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue