diff --git a/lua/diagnostic/util.lua b/lua/diagnostic/util.lua index 5904e42..a1c29b2 100644 --- a/lua/diagnostic/util.lua +++ b/lua/diagnostic/util.lua @@ -152,7 +152,7 @@ function M.locations_to_items(locations) if pos.character > #line then col = #line else - col = vim.str_byteindex(line, pos.character) + col = pos.character end table.insert(items, {