mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-18 03:50:26 +01:00
Add extension to temporary files
This commit is contained in:
@@ -1816,6 +1816,9 @@ function! s:ProcessFile(fname, ftype) abort
|
||||
endif
|
||||
|
||||
let tempfile = tempname()
|
||||
if fnamemodify(fileinfo.fpath, ':e') != ''
|
||||
let tempfile .= '.' . fnamemodify(fileinfo.fpath, ':e')
|
||||
endif
|
||||
|
||||
call writefile(getbufline(fileinfo.bufnr, 1, '$'), tempfile)
|
||||
let fileinfo.mtime = getftime(tempfile)
|
||||
|
||||
Reference in New Issue
Block a user