mirror of https://github.com/Hilbis/Hilbish
fix: dont make continued input spaced out
basically, if i had something like > here i want to \ complete it would return "here i want to complete" so now it doesnt anymore, if you want the space, do it manuallypull/59/head
parent
0afca3d4f6
commit
4ce223e2f4
2
main.go
2
main.go
|
@ -174,7 +174,7 @@ func ContinuePrompt(prev string) (string, error) {
|
||||||
}
|
}
|
||||||
cont = strings.TrimSpace(cont)
|
cont = strings.TrimSpace(cont)
|
||||||
|
|
||||||
return prev + " " + strings.TrimSuffix(cont, "\n"), nil
|
return prev + strings.TrimSuffix(cont, "\n"), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// This semi cursed function formats our prompt (obviously)
|
// This semi cursed function formats our prompt (obviously)
|
||||||
|
|
Loading…
Reference in New Issue