aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/language.lua
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2024-01-07 12:25:25 -0500
committerGitHub <noreply@github.com>2024-01-07 12:25:25 -0500
commit367e52cc79a786bbee4456b30f9ec5db7e28d6a5 (patch)
treeb380e60465dc41cb5c585aea414be84d292d07a9 /runtime/lua/vim/treesitter/language.lua
parent8df37423781493f58de060e1c9219cd1c3768130 (diff)
downloadrneovim-367e52cc79a786bbee4456b30f9ec5db7e28d6a5.tar.gz
rneovim-367e52cc79a786bbee4456b30f9ec5db7e28d6a5.tar.bz2
rneovim-367e52cc79a786bbee4456b30f9ec5db7e28d6a5.zip
fix(tui): use buflen to calculate remaining buffer size (#26942)
buf is a pointer argument, not a local char array, so sizeof(buf) is just the size of a pointer type on the platform. This is always an incorrect value, but on 32-bit platforms it actually has an impact, since sizeof(buf) is just 4 and causes the buffer to get truncated.
Diffstat (limited to 'runtime/lua/vim/treesitter/language.lua')
0 files changed, 0 insertions, 0 deletions