fix: support multiple clients in lsp code actions (#722)
* fix: support multiple clients in lsp code actions * no goto * reduce diff a bit * use displayer, also include lsp client name for each entry * review comments
This commit is contained in:
@@ -259,13 +259,14 @@ utils.strdisplaywidth = (function()
|
||||
|
||||
return function(str, col)
|
||||
local startcol = col or 0
|
||||
str = tostring(str)
|
||||
local s = ffi.new('char[?]', #str + 1)
|
||||
ffi.copy(s, str)
|
||||
return ffi.C.linetabsize_col(startcol, s) - startcol
|
||||
end
|
||||
else
|
||||
return function(str, col)
|
||||
return #str - (col or 0)
|
||||
return #(tostring(str)) - (col or 0)
|
||||
end
|
||||
end
|
||||
end)()
|
||||
|
||||
Reference in New Issue
Block a user