mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-13 11:29:29 +08:00
Add extension to temporary files
This commit is contained in:
parent
e321d85548
commit
f2c072dbb9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user