]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1306: completion menu rendering can be improved v9.1.1306
authorglepnir <glephunter@gmail.com>
Tue, 15 Apr 2025 17:06:58 +0000 (19:06 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 15 Apr 2025 17:06:58 +0000 (19:06 +0200)
commit32f2bb6e1e672f52d736579d9752473b14a5744d
tree9436702219bf0a81f766515625ae384b37fe48a4
parentcf7f01252f00061876f7eb14dbf74342a55a13a1
patch 9.1.1306: completion menu rendering can be improved

Problem:  Parts of the popup menu were rendered twice when the popup was
          at maximum width because the truncation flag was being set too
          liberally.
Solution: Make the truncation condition more precise by only setting it
          when there's exactly one character of space remaining
          (glepnir).

closes: #17108

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/popupmenu.c
src/version.c