diff options
author | zeertzjq <zeertzjq@outlook.com> | 2021-12-24 08:06:27 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2021-12-24 08:06:27 +0800 |
commit | e6d35b9e4011023a4efd06234fe2fd2c5f7dc829 (patch) | |
tree | 3586e7c94abb9e8e495fdb1ce2c155bb6f001138 /runtime/lua/vim/uri.lua | |
parent | 28dadd5a54a67b467c08614670c65b0b5b23d247 (diff) | |
download | rneovim-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/uri.lua')
0 files changed, 0 insertions, 0 deletions