mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-24 17:58:51 +02:00
fix(ui): show global marks in the correct buffer only
This commit is contained in:
parent
1abcffbfd9
commit
3849e0150b
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ function M.get_mark(buf, lnum)
|
|||
local marks = vim.fn.getmarklist(buf)
|
||||
vim.list_extend(marks, vim.fn.getmarklist())
|
||||
for _, mark in ipairs(marks) do
|
||||
if mark.pos[2] == lnum and mark.mark:match("[a-zA-Z]") then
|
||||
if mark.pos[1] == buf and mark.pos[2] == lnum and mark.mark:match("[a-zA-Z]") then
|
||||
return { text = mark.mark:sub(2), texthl = "DiagnosticHint" }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue