aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/_snippet.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2021-12-24 08:06:27 +0800
committerzeertzjq <zeertzjq@outlook.com>2021-12-24 08:06:27 +0800
commite6d35b9e4011023a4efd06234fe2fd2c5f7dc829 (patch)
tree3586e7c94abb9e8e495fdb1ce2c155bb6f001138 /runtime/lua/vim/lsp/_snippet.lua
parent28dadd5a54a67b467c08614670c65b0b5b23d247 (diff)
downloadrneovim-e6d35b9e4011023a4efd06234fe2fd2c5f7dc829.tar.gz
rneovim-e6d35b9e4011023a4efd06234fe2fd2c5f7dc829.tar.bz2
rneovim-e6d35b9e4011023a4efd06234fe2fd2c5f7dc829.zip
fix(pum_redraw): use grid_puts_len() to truncate the text
Nvim already resizes grid to the required width, so there is no need to truncate the text in pum_redraw(). What's more, truncation is currently done incorrectly because Vim patch 8.2.1995 was ported incorrectly. This nearly reverts the truncation part of Vim patch 8.2.1995, but not the part that reduces unnecessary calls to pum_redraw(). The original PR https://github.com/vim/vim/pull/7306 didn't explain much about which part of it actually reduces redraws.
Diffstat (limited to 'runtime/lua/vim/lsp/_snippet.lua')
0 files changed, 0 insertions, 0 deletions