mirror of https://github.com/Hilbis/Hilbish
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 completionpull/207/head
parent
c13889592f
commit
1eed4cc7ee
|
@ -27,6 +27,9 @@ func splitQuote(str string) []string {
|
||||||
sb.WriteRune(r)
|
sb.WriteRune(r)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if strings.HasSuffix(str, " ") {
|
||||||
|
split = append(split, "")
|
||||||
|
}
|
||||||
|
|
||||||
if sb.Len() > 0 {
|
if sb.Len() > 0 {
|
||||||
split = append(split, sb.String())
|
split = append(split, sb.String())
|
||||||
|
|
Loading…
Reference in New Issue