]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1355: The pum_redraw() function is too complex v9.1.1355
authorglepnir <glephunter@gmail.com>
Tue, 29 Apr 2025 16:27:05 +0000 (18:27 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 29 Apr 2025 16:27:05 +0000 (18:27 +0200)
commitc3e71d4da6633f2804ef3212dcd6ac615580417c
treee3651dce0e2cc98213ca09f5fd9c26f6ca96f4c8
parenta74d5503d5ba865d5ef17b77d449613fde02cb02
patch 9.1.1355: The pum_redraw() function is too complex

Problem:  The pum_redraw function is too complex and difficult to
          maintain with nested loops and mixed responsibilities handling
          both RTL and LTR text rendering.
Solution: Extracted core rendering logic into dedicated helper functions
          (pum_display_rtl_text, pum_display_ltr_text, pum_draw_scrollbar,
          pum_process_item) while preserving the original behavior. This
          improves code readability and maintainability (glepnir).

closes: #17204

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