aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_system.lua
diff options
context:
space:
mode:
authorglepnir <glephunter@gmail.com>2025-03-10 04:19:01 +0800
committerGitHub <noreply@github.com>2025-03-09 13:19:01 -0700
commitd9585bdcfb5bc85c5a2f6fa5d211295c9c1011ea (patch)
tree5ef22626c90141de5e2d4e189ce6ba7407d3640e /runtime/lua/vim/_system.lua
parent34a2bfdcc5ce03a1c8e2128cd1c3e7ab99755d12 (diff)
downloadrneovim-d9585bdcfb5bc85c5a2f6fa5d211295c9c1011ea.tar.gz
rneovim-d9585bdcfb5bc85c5a2f6fa5d211295c9c1011ea.tar.bz2
rneovim-d9585bdcfb5bc85c5a2f6fa5d211295c9c1011ea.zip
fix(nvim__set_complete): pum preview info truncated during completion #32555
Problem: 1. The original info text is truncated in pum_set_preview_text. 2. There is an extra newline character at the end of the info text. 3. Incorrect usage of plines_win leads to errors in calculating the window height. Solution: 1. Improved string handling in pum_preview_set_text to safely process line content without modifying the original text. Now, the preview info is correctly preserved while splitting lines. 2. Do not append a trailing newline to the preview buffer when one is present at the end. 3. Set w_widher_inner in advance; otherwise, plines_win cannot correctly calculate the wrapped line height.
Diffstat (limited to 'runtime/lua/vim/_system.lua')
0 files changed, 0 insertions, 0 deletions