From a36204e616f7a2cd6d55f8bcc2e9e0c1d95a0b7c Mon Sep 17 00:00:00 2001 From: haorenW1025 Date: Tue, 21 Jul 2020 11:42:31 +0800 Subject: [PATCH] possible fix --- lua/diagnostic/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, {