Skip to content

Commit fb8c50b

Browse files
committed
ci: add test for buflisted (#2561)
1 parent 53797f0 commit fb8c50b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

tests/actions_spec.lua

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,5 +155,19 @@ T["actions"]["vimcmd"] = new_set({
155155
end
156156
})
157157

158+
T["actions"]["buflisted #2561"] = function()
159+
child.cmd("edit LICENSE")
160+
child.bo.buflisted = false
161+
child.cmd("enew")
162+
helpers.FzfLua.files(child, {
163+
__abort_key = "<cr>",
164+
__expect_lines = false,
165+
__after_open = function()
166+
if helpers.IS_WIN() then vim.uv.sleep(250) end
167+
end,
168+
query = "LICENSE$",
169+
})
170+
eq(true, child.bo.buflisted)
171+
end
158172

159173
return T

0 commit comments

Comments
 (0)