mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-24 10:06:26 +08:00
Merge pull request #1062 from chrisbra/fix_1061
do not unconditionally use utf-8 encoding in branch exten
This commit is contained in:
commit
5d4ddeec10
|
@ -154,7 +154,7 @@ function! airline#extensions#branch#head()
|
|||
if exists("g:airline#extensions#branch#displayed_head_limit")
|
||||
let w:displayed_head_limit = g:airline#extensions#branch#displayed_head_limit
|
||||
if len(b:airline_head) > w:displayed_head_limit - 1
|
||||
let b:airline_head = b:airline_head[0:w:displayed_head_limit - 1].'…'
|
||||
let b:airline_head = b:airline_head[0:(w:displayed_head_limit - 1)].(&encoding ==? 'utf-8' ? '…' : '.')
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user