From 6cb336d014e79cb8df8f66384bf994a268505fb1 Mon Sep 17 00:00:00 2001 From: raven42 Date: Wed, 16 Sep 2020 12:17:21 -0500 Subject: [PATCH] Update variable name --- autoload/tagbar.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 1138204..a00a8ff 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -1161,12 +1161,12 @@ function! s:ProcessFile(fname, ftype) abort " If the file size limit it set, then check the file size to see if " this file should be ignored or not. if g:tagbar_file_size_limit > 0 - let linecount = getfsize(expand('%')) - if linecount > g:tagbar_file_size_limit && !exists('b:tagbar_force_update') - call tagbar#debug#log('[ProcessFile] File size too large (' . linecount . + let fsize = getfsize(expand('%')) + if fsize > g:tagbar_file_size_limit && !exists('b:tagbar_force_update') + call tagbar#debug#log('[ProcessFile] File size too large (' . fsize . \ ' bytes) - limit set to ' . g:tagbar_file_size_limit) if !exists('b:tagbar_file_exceeds_limit') - echom 'File size too large (' . linecount . + echom 'File size too large (' . fsize . \ ' bytes) - Not processing file (see help for g:tagbar_file_size_limit).' let b:tagbar_file_exceeds_limit = 1 endif