mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-23 03:18:56 +08:00
term: only strip first letter from name, if it starts with '!'
This commit is contained in:
parent
704e58e1b7
commit
ead2cd63bb
|
@ -33,7 +33,11 @@ function! s:termname()
|
|||
return matchstr(bufname, 'term.*:\zs.*')
|
||||
else
|
||||
" get rid of leading '!'
|
||||
return bufname[1:]
|
||||
if bufname[0] is# '!'
|
||||
return bufname[1:]
|
||||
else
|
||||
return bufname
|
||||
endif
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user