Skip 100mb files

This commit is contained in:
Anton Medvedev 2024-03-13 23:20:04 +01:00
parent 38e9fea494
commit 287fd87794

View File

@ -125,8 +125,8 @@ func doComplete(compLine string, compWord string) {
return
}
// If input is bigger than 1MB, skip completion.
if len(input) > 1024*1024 {
// If input is bigger than 100MB, skip completion.
if len(input) > 100*1024*1024 {
return
}