mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-23 22:15:28 +02:00
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:
parent
7a552f415c
commit
9884c07966
@ -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', "")
|
||||
|
Loading…
x
Reference in New Issue
Block a user