aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoload/utils.vim8
1 files changed, 5 insertions, 3 deletions
diff --git a/autoload/utils.vim b/autoload/utils.vim
index 580c1cd..5bfff78 100644
--- a/autoload/utils.vim
+++ b/autoload/utils.vim
@@ -131,9 +131,11 @@ function! utils#Get_titlestr() abort
if g:is_linux
let l:title_str = hostname() . ' '
endif
- let l:title_str = l:title_str . expand('%:p:~') . ' '
- if &buflisted
- let l:title_str = l:title_str . strftime('%Y-%m-%d %H:%M',getftime(expand('%')))
+
+ let l:buf_path = expand('%:p:~')
+ let l:title_str = l:title_str . l:buf_path . ' '
+ if &buflisted && l:buf_path != ""
+ let l:title_str = l:title_str . strftime('%Y-%m-%d %H:%M %Z',getftime(expand('%')))
endif
return l:title_str