term: only strip first letter from name, if it starts with '!'

This commit is contained in:
Christian Brabandt 2019-04-18 15:52:54 +02:00
parent 704e58e1b7
commit ead2cd63bb
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -33,7 +33,11 @@ function! s:termname()
return matchstr(bufname, 'term.*:\zs.*') return matchstr(bufname, 'term.*:\zs.*')
else else
" get rid of leading '!' " get rid of leading '!'
return bufname[1:] if bufname[0] is# '!'
return bufname[1:]
else
return bufname
endif
endif endif
endfunction endfunction