diff options
Diffstat (limited to 'vim/autoload/put_date.vim')
-rw-r--r-- | vim/autoload/put_date.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vim/autoload/put_date.vim b/vim/autoload/put_date.vim index 2b618632..c9f52c12 100644 --- a/vim/autoload/put_date.vim +++ b/vim/autoload/put_date.vim @@ -1,10 +1,10 @@ let s:rfc_2822 = '%a, %d %b %Y %T %z' -function! put_date#(line, bang, ...) abort +function! put_date#(line, utc, format) abort let line = a:line - let utc = a:bang ==# '!' - let format = a:0 - \ ? substitute(a:1, '\a', '%&', 'g') + let utc = a:utc + let format = strlen(a:format) + \ ? substitute(a:format, '\a', '%&', 'g') \ : s:rfc_2822 if utc if exists('$TZ') |