1
0
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:
David Hegland
2020-09-23 11:45:02 -05:00
parent 6cb336d014
commit 64730d27a9
4 changed files with 37 additions and 22 deletions

View File

@@ -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