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.*')
|
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user