diff options
| author | William Boman <william@redwill.se> | 2021-04-21 02:48:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-20 17:48:29 -0700 |
| commit | 3adeab2bed42597c8495fbe3a2376c746232f2e3 (patch) | |
| tree | a4cd1f60c32a11d869af92d5c535fba05de73a40 /lua/telescope/utils.lua | |
| parent | 13dae8c4d924472933443f14109a0739dbacbeda (diff) | |
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
Diffstat (limited to 'lua/telescope/utils.lua')
| -rw-r--r-- | lua/telescope/utils.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/telescope/utils.lua b/lua/telescope/utils.lua index 4e8c1d3..85e8723 100644 --- a/lua/telescope/utils.lua +++ b/lua/telescope/utils.lua @@ -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)() |
