diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-11-17 13:38:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-17 13:38:10 +0100 |
commit | 7af89ef464fb23125ac49e6b19f3509e7009fe23 (patch) | |
tree | 434ec27e069ba57406ce9f6d194627e95c3d315c /src/nvim/lua/stdlib.c | |
parent | 20ec4c776a07492c2e3b995e10b40b1cdb52bc7a (diff) | |
parent | b522cb1ac3fbdf6e68eed5d0b6e1cbeaf3ac2254 (diff) | |
download | rneovim-7af89ef464fb23125ac49e6b19f3509e7009fe23.tar.gz rneovim-7af89ef464fb23125ac49e6b19f3509e7009fe23.tar.bz2 rneovim-7af89ef464fb23125ac49e6b19f3509e7009fe23.zip |
Merge pull request #25934 from bfredl/screenlinechar
refactor(grid): make screen rendering more multibyte than ever before
Diffstat (limited to 'src/nvim/lua/stdlib.c')
-rw-r--r-- | src/nvim/lua/stdlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/lua/stdlib.c b/src/nvim/lua/stdlib.c index 5072d14c0e..a200b0a32f 100644 --- a/src/nvim/lua/stdlib.c +++ b/src/nvim/lua/stdlib.c @@ -224,7 +224,7 @@ static int nlua_str_utf_start(lua_State *const lstate) FUNC_ATTR_NONNULL_ALL if (offset < 0 || offset > (intptr_t)s1_len) { return luaL_error(lstate, "index out of range"); } - int head_offset = utf_cp_head_off(s1, s1 + offset - 1); + int head_offset = -utf_cp_head_off(s1, s1 + offset - 1); lua_pushinteger(lstate, head_offset); return 1; } |