]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0080: popup: a few redrawing problems v9.2.0080
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Sat, 28 Feb 2026 17:28:25 +0000 (17:28 +0000)
committerChristian Brabandt <cb@256bit.org>
Sat, 28 Feb 2026 17:32:45 +0000 (17:32 +0000)
commitcded5e22058e4f0bb54077a65c130164e3528283
treed272b56d00af84328f2d258b9291ff8b64085fdc
parentb901fa9a6adbc0b1404b1e6c19f83941820b1d91
patch 9.2.0080: popup: a few redrawing problems

Problem:   Popup windows leave ghost images when moved. Visual options
           do not trigger a redraw when updated via popup_setoptions().
           An empty borderhighlight list fails to clear existing
           highlights.
Solution:  Modify f_popup_move() in src/popupwin.c to save the old
           position before moving and force a redraw. Enhance
           f_popup_setoptions() to trigger a redraw when
           visual-affecting options change. Modify
           apply_general_options() to explicitly clear border
           highlights when an empty list is provided
           (Yasuhiro Matsumoto).

closes: #19297

Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/drawscreen.c
src/highlight.c
src/popupwin.c
src/proto/popupwin.pro
src/screen.c
src/structs.h
src/testdir/dumps/Test_popupwin_mask_5.dump
src/testdir/dumps/Test_popupwin_opacity_wide_1.dump [new file with mode: 0644]
src/testdir/dumps/Test_popupwin_opacity_wide_2.dump [new file with mode: 0644]
src/testdir/test_popupwin.vim
src/version.c