Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error of quitting in the middle of gtags generating (issue 319). #359

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iLeeWell
Copy link

Fix error of quitting in the middle of gtags generating. #319

@smemsh
Copy link

smemsh commented Jun 4, 2024

@iLeeWell if I'm reading this correctly, it removes all zero-byte files in the directory where the db is located:

let files = split(globpath(l:db_path, '*'), '\n')
for file in files
    let file_size = getfsize(file)
    if file_size == 0
        try | call delete(file) | endtry
    endif
endfor

is this not dangerous for people that are not using g:gutentags_cache_dir ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants