Skip 100mb files

pull/295/head
Anton Medvedev 3 months ago
parent aa826c4d04
commit 821c3363fc
No known key found for this signature in database

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

Loading…
Cancel
Save