From d9f42cb46710e31962a9609939ddfeb0685dd779 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Sat, 17 Feb 2024 15:28:04 +0100 Subject: [PATCH] parts: error when unsing non-utf8 encoding MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit use exprission string "\u2026" instead of literal … fixes #2666 --- autoload/airline/parts.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/parts.vim b/autoload/airline/parts.vim index f90d003a..ddbc6013 100644 --- a/autoload/airline/parts.vim +++ b/autoload/airline/parts.vim @@ -191,7 +191,7 @@ endfunction function! airline#parts#filetype() return (airline#util#winwidth() < 90 && strlen(&filetype) > 3) - \ ? matchstr(&filetype, '...'). (&encoding is? 'utf-8' ? '…' : '>') + \ ? matchstr(&filetype, '...'). (&encoding is? 'utf-8' ? "\u2026" : '>') \ : &filetype endfunction