mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-01 11:13:24 +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:
parent
c13889592f
commit
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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user