Skip to content

Commit d4fb5c2

Browse files
committed
fix(condition): loosen validity check in buffer_matches
1 parent 3d1f7b0 commit d4fb5c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/astroui/status/condition.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ local buf_matchers = {
4545
function M.buffer_matches(patterns, bufnr, op)
4646
if not op then op = "or" end
4747
if not bufnr then bufnr = 0 end
48-
if require("astrocore.buffer").is_valid(bufnr) then
48+
if vim.api.nvim_buf_is_valid(bufnr) then
4949
for kind, pattern_list in pairs(patterns) do
5050
if buf_matchers[kind](pattern_list, bufnr) then
5151
if op == "or" then return true end

0 commit comments

Comments
 (0)