mirror of
https://github.com/gryf/tagbar.git
synced 2026-03-04 00:15:45 +01:00
Added fsize calculation in fileinfo so better tracking can be used to display in tagbar window
This commit is contained in:
@@ -9,6 +9,9 @@ function! tagbar#prototypes#fileinfo#new(fname, ftype, typeinfo) abort
|
||||
" File modification time
|
||||
let newobj.mtime = getftime(a:fname)
|
||||
|
||||
" Get file size
|
||||
let newobj.fsize = getfsize(a:fname)
|
||||
|
||||
" The vim file type
|
||||
let newobj.ftype = a:ftype
|
||||
|
||||
@@ -52,6 +55,10 @@ function! tagbar#prototypes#fileinfo#new(fname, ftype, typeinfo) abort
|
||||
let newobj.openKindFold = function(s:add_snr('s:openKindFold'))
|
||||
let newobj.closeKindFold = function(s:add_snr('s:closeKindFold'))
|
||||
|
||||
" This is used during file processing. If the limit is exceeded at that
|
||||
" point, then mark this flag for displaying to the tagbar window
|
||||
let newobj.fsize_exceeded = 0
|
||||
|
||||
return newobj
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user