fix(picker.lines): col is first non-whitespace. Closes #806

This commit is contained in:
Folke Lemaitre 2025-01-31 06:13:38 +01:00
parent 3c4151dbec
commit ec8eb60515
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -16,7 +16,7 @@ function M.lines(opts)
local item = {
buf = buf,
text = line,
pos = { l, 0 },
pos = { l, (line:find("%S") or 1) - 1 },
highlights = extmarks[l],
}
items[#items + 1] = item