2
2
spegling av https://github.com/Hilbis/Hilbish synced 2025-07-18 16:52:02 +00:00

fix: add back empty string in command line split

this fixes file completion in normal usage without
using quotes. it basically cut out the space at the
end which prevented normal usage without adding an
additional space or using quotes for file
completion
This commit is contained in:
TorchedSammy 2022-08-30 23:38:46 -04:00
förälder c13889592f
incheckning 1eed4cc7ee
Signerad av: sammyette
GPG-nyckel ID: 904FC49417B44DCD

Visa fil

@ -27,6 +27,9 @@ func splitQuote(str string) []string {
sb.WriteRune(r)
}
}
if strings.HasSuffix(str, " ") {
split = append(split, "")
}
if sb.Len() > 0 {
split = append(split, sb.String())