mirror of
https://github.com/gryf/tagbar.git
synced 2026-10-06 13:40:36 +02:00
Add extension to temporary files
This commit is contained in:
1 parent
e321d85548
commit
f2c072dbb9
1 file changed
+3
@@ -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