[vim/vim] avoid overwriting right-top corner when drawing top border (PR #19299)

5 views
Skip to first unread message

mattn

unread,
Jan 31, 2026, 11:41:37 AM (2 days ago) Jan 31
to vim/vim, Subscribed

When drawing the top border of a popup window, screen_fill() was called with wincol + total_width as the end column, which caused it to overwrite the right-top corner character (border_char[5]) that is placed at wincol + total_width - 1. The overwritten character would display with attr=0 (default background), appearing as black.

image.png (view on web)

So, change the end column from wincol + total_width to wincol + total_width - 1, so that screen_fill() does not overwrite
the right-top corner character. This fix applies to all popup windows, including those using multibyte
characters for borders.


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

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

Commit Summary

  • d32037b avoid overwriting right-top corner when drawing top border

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/19299@github.com>

mattn

unread,
Jan 31, 2026, 1:04:39 PM (2 days ago) Jan 31
to vim/vim, Push

@mattn pushed 1 commit.


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19299/before/d32037b28e2dc28bde02dd95b7fc4da146005180/after/138ffddcee34cb3df4994ebe0ce236990e05104e@github.com>

Christian Brabandt

unread,
Feb 1, 2026, 10:32:08 AM (yesterday) Feb 1
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#19299)

Hm, if you inspect the dump files, this looks slightly wrong:
image.png (view on web)
image.png (view on web)

Now it seems the border is drawn 1 char too short?


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/19299/c3831210861@github.com>

mattn

unread,
Feb 1, 2026, 8:31:46 PM (23 hours ago) Feb 1
to vim/vim, Push

@mattn pushed 2 commits.

  • 5edae53 Fix wide character attribute preservation in popup overlaps
  • 6cc52d3 fix

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19299/before/138ffddcee34cb3df4994ebe0ce236990e05104e/after/6cc52d33d29dbedfdd62860b0894f58c139f381e@github.com>

mattn

unread,
Feb 1, 2026, 8:33:10 PM (23 hours ago) Feb 1
to vim/vim, Subscribed
mattn left a comment (vim/vim#19299)

I updated patch. I want to test with same dump file. Which dump file do you use?


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/19299/c3832472354@github.com>

mattn

unread,
3:51 AM (16 hours ago) 3:51 AM
to vim/vim, Push

@mattn pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19299/before/6cc52d33d29dbedfdd62860b0894f58c139f381e/after/82e707ee642d2f93f40b3e1ea20ff54728cc50cc@github.com>

mattn

unread,
10:37 AM (9 hours ago) 10:37 AM
to vim/vim, Push

@mattn pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19299/before/82e707ee642d2f93f40b3e1ea20ff54728cc50cc/after/507385beb1d14067a8be7d28398fae5d96dae590@github.com>

mattn

unread,
11:17 AM (9 hours ago) 11:17 AM
to vim/vim, Push

@mattn pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19299/before/507385beb1d14067a8be7d28398fae5d96dae590/after/139d39f4029b5728e73d40f5817ca45d1a1b0e1b@github.com>

Reply all
Reply to author
Forward
0 new messages