diff options
author | Ashkan Kiani <ashkan.k.kiani@gmail.com> | 2019-11-21 16:23:12 -0800 |
---|---|---|
committer | Ashkan Kiani <ashkan.k.kiani@gmail.com> | 2019-11-21 16:23:12 -0800 |
commit | a3d67dac5f9de6099890ae4b9fab2b70b2279a29 (patch) | |
tree | 49732ed488ff12c4a57826e10d5197abb66dbd03 /runtime/lua/vim/lsp.lua | |
parent | c055ca00ce61499e9161b8d2fa48568e833ee5b0 (diff) | |
download | rneovim-a3d67dac5f9de6099890ae4b9fab2b70b2279a29.tar.gz rneovim-a3d67dac5f9de6099890ae4b9fab2b70b2279a29.tar.bz2 rneovim-a3d67dac5f9de6099890ae4b9fab2b70b2279a29.zip |
Fix encoding translation in other places.
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
-rw-r--r-- | runtime/lua/vim/lsp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index 17d6001496..880d811647 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -862,7 +862,7 @@ function lsp.omnifunc(findstart, base) position = { -- 0-indexed for both line and character line = pos[1] - 1, - character = pos[2], + character = vim.str_utfindex(line, pos[2]), }; -- The completion context. This is only available if the client specifies -- to send this using `ClientCapabilities.textDocument.completion.contextSupport === true` |