mirror of
https://github.com/folke/snacks.nvim
synced 2025-07-07 21:25:11 +00:00
fix(picker.buffers): add a
flag when buffer is visible in a window. See #1417
This commit is contained in:
parent
28d5adba6b
commit
91c3da0b4b
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ function M.buffers(opts, ctx)
|
|||
local mark = vim.api.nvim_buf_get_mark(buf, '"')
|
||||
local flags = {
|
||||
buf == current_buf and "%" or (buf == alternate_buf and "#" or ""),
|
||||
info.hidden == 1 and "h" or "a",
|
||||
info.hidden == 1 and "h" or (#(info.windows or {}) > 0) and "a" or "",
|
||||
vim.bo[buf].readonly and "=" or "",
|
||||
info.changed == 1 and "+" or "",
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue