[vim/vim] pum opacity corrupts wide background chars (PR #20017)

3 views
Skip to first unread message

mattn

unread,
Apr 19, 2026, 11:51:52 AM (yesterday) Apr 19
to vim/vim, Subscribed

With pumopt=opacity, the popup-menu blend path processes each cell
independently, so the trailing half of a background wide character is
overwritten after screen_char() has already drawn the full wide glyph.
Background wide characters around the popup disappear or remain as
isolated halves.

Mirror the trailing-cell skip from the screen_opacity_popup path to
the screen_pum_blend branch.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20017

Commit Summary

  • d00d1a0 patch 9.2.xxxx: pum opacity corrupts wide background chars

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20017@github.com>

mattn

unread,
Apr 19, 2026, 12:01:23 PM (yesterday) Apr 19
to vim/vim, Push

@mattn pushed 2 commits.

  • e803eec pum opacity: fix wide background char corruption
  • b0ba41e pum opacity: blend popup text bg with underlying bg


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20017/before/d00d1a036e56bd86ecde20ad20fb48a9c62b2734/after/b0ba41ea2ff94de050d3cb11c5213f083ea2605c@github.com>

mattn

unread,
Apr 19, 2026, 12:15:23 PM (yesterday) Apr 19
to vim/vim, Subscribed
mattn left a comment (vim/vim#20017)

I found one another issue related on this.
image.png (view on web)


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20017/c4276306806@github.com>

mattn

unread,
Apr 19, 2026, 12:19:42 PM (yesterday) Apr 19
to vim/vim, Push

@mattn pushed 1 commit.

  • 9f2e40e pum opacity: preserve right border when bg wide char spills


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20017/before/b0ba41ea2ff94de050d3cb11c5213f083ea2605c/after/9f2e40e40081f7ad2bcc187c3af7504817b8fa8a@github.com>

mattn

unread,
Apr 19, 2026, 12:22:04 PM (yesterday) Apr 19
to vim/vim, Subscribed
mattn left a comment (vim/vim#20017)

Fixed
image.png (view on web)


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20017/c4276317936@github.com>

mattn

unread,
Apr 19, 2026, 12:38:27 PM (yesterday) Apr 19
to vim/vim, Push

@mattn pushed 1 commit.

  • 6f2e268 pum opacity: use popup attrs on opaque popup text


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20017/before/9f2e40e40081f7ad2bcc187c3af7504817b8fa8a/after/6f2e2683a5e477e8370d02c2c58771c4a527da2a@github.com>

Christian Brabandt

unread,
Apr 19, 2026, 2:54:25 PM (yesterday) Apr 19
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20017)

thanks


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20017/c4276584805@github.com>

Christian Brabandt

unread,
Apr 19, 2026, 2:56:58 PM (yesterday) Apr 19
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20017)

Hm, can you add a test for this change?


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20017/c4276589005@github.com>

mattn

unread,
Apr 19, 2026, 7:52:37 PM (22 hours ago) Apr 19
to vim/vim, Push

@mattn pushed 1 commit.

  • d3e1eae test: add screendumps for pumopt opacity with multibyte text


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20017/before/6f2e2683a5e477e8370d02c2c58771c4a527da2a/after/d3e1eae91f685c24708bec70364eebf04038f6fb@github.com>

mattn

unread,
Apr 19, 2026, 7:55:40 PM (22 hours ago) Apr 19
to vim/vim, Subscribed
mattn left a comment (vim/vim#20017)

It seems like a few more bugs need fixing.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20017/c4277110584@github.com>

mattn

unread,
Apr 19, 2026, 8:37:29 PM (22 hours ago) Apr 19
to vim/vim, Push

@mattn pushed 1 commit.

  • ac7ae8b pum opacity: fix trailing-cell handling near popup text boundary

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20017/before/d3e1eae91f685c24708bec70364eebf04038f6fb/after/ac7ae8b0d1d8fda54f7711110915a224e901fb9f@github.com>

mattn

unread,
Apr 19, 2026, 8:37:52 PM (22 hours ago) Apr 19
to vim/vim, Subscribed
mattn left a comment (vim/vim#20017)

Added tests for pumopt opacity against multibyte background text and popup items.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20017/c4277209016@github.com>

mattn

unread,
Apr 19, 2026, 8:39:40 PM (22 hours ago) Apr 19
to vim/vim, Push

@mattn pushed 1 commit.

  • 6096b5a test: add screendump for pum opacity with offset multibyte bg

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20017/before/ac7ae8b0d1d8fda54f7711110915a224e901fb9f/after/6096b5afb5a56e5e2c1e4d96b10983655e7435be@github.com>

mattn

unread,
Apr 19, 2026, 8:40:42 PM (22 hours ago) Apr 19
to vim/vim, Subscribed
mattn left a comment (vim/vim#20017)

https://github.com/user-attachments/assets/37196c36-b443-4e51-b86c-f64d7f95bdbc


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20017/c4277215743@github.com>

Christian Brabandt

unread,
11:20 AM (7 hours ago) 11:20 AM
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20017)

thanks


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20017/c4282061328@github.com>

Christian Brabandt

unread,
11:43 AM (7 hours ago) 11:43 AM
to vim/vim, Subscribed

Closed #20017 via 73ba353.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20017/issue_event/24684164741@github.com>

Reply all
Reply to author
Forward
0 new messages