From 9884c07966a78d0d684a243ac892907b11a96bc2 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 8 Apr 2025 09:45:01 +0200 Subject: [PATCH] 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 --- autoload/airline/init.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autoload/airline/init.vim b/autoload/airline/init.vim index 05ae6ab8..5a00fd1f 100644 --- a/autoload/airline/init.vim +++ b/autoload/airline/init.vim @@ -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', "")