[vim/vim] screen: fill char with a zero low byte is stored as a NUL cell (PR #20960)

h_east (Vim Github Repository) <[email protected]> Thu, 06 Aug 2026 07:49:39 -0700
Newsgroups gmane.editors.vim.devel
Message-ID <vim/vim/pull/[email protected]>
```
Problem:  Using a multibyte fill character whose lower byte is zero, such
          as U+2500 for a popup border or 'fillchars', stores a NUL in
          ScreenLines[].  That marks the cell as the right half of a
          double-width character, and the GUI reports E340 when the window
          is resized (iranoan).
Solution: Store 0x80 instead of the truncated character code, like
          fold_line() already does.
```

fixes: https://github.com/vim-jp/issues/issues/1460 (Japanese)
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * screen: fill char with a zero low byte is stored as a NUL cell

-- File Changes --

    M src/screen.c (2)

-- Patch Links --

https://github.com/vim/vim/pull/20960.patch
https://github.com/vim/vim/pull/20960.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/pull/20960
You are receiving this because you are subscribed to this thread.

Message ID: <vim/vim/pull/[email protected]>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim/vim/pull/20960%40github.com.