whitespace: U+2632 changed width to double-width

Whitespace Character U+2632 changed to double-width with Unicode release
16 (Vim patch v9.1.736). This causes issues with the statusline like
adding wrapping.
So let's mark that character back as single width, since that is what
most underlying libraries seem to expect.

closes: #2715
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt 2025-04-08 09:45:01 +02:00
parent 7a552f415c
commit 9884c07966
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -138,6 +138,11 @@ function! airline#init#bootstrap()
\ 'crypt': nr2char(0x1F512),
\ }, 'keep')
" Note: If "\u2046" (Ɇ) does not show up, try to use "\u2204" (∄)
if exists("*setcellwidths")
" whitespace char 0x2632 changed to double-width in Unicode 16,
" mark it single width again
call setcellwidths([[0x2632, 0x2632, 1]])
endif
elseif &encoding==?'utf-8' && !get(g:, "airline_symbols_ascii", 0)
" Symbols for Unicode terminals
call s:check_defined('g:airline_left_sep', "")