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:
förälder
c13889592f
incheckning
1eed4cc7ee
@ -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())
|
||||
|
Laddar…
x
Referens i nytt ärende
Block a user