Merge pull request #1062 from chrisbra/fix_1061

do not unconditionally use utf-8 encoding in branch exten
This commit is contained in:
Christian Brabandt 2016-02-25 12:00:50 +01:00
commit 5d4ddeec10
1 changed files with 1 additions and 1 deletions

View File

@ -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