Append newline to autocomplete input if it's missing (fixes #303) (#304)

* append newline to autocomplete input if it's missing

* always append newline

* Update complete.go

---------

Co-authored-by: Anton Medvedev <anton@medv.io>
pull/297/merge
Marvin Wendt 3 weeks ago committed by GitHub
parent 21f58332a9
commit 433854d6d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -139,6 +139,8 @@ func doComplete(compLine string, compWord string) {
return
}
input = append(input, '\n')
// If input is bigger than 100MB, skip completion.
if len(input) > 100*1024*1024 {
return

Loading…
Cancel
Save