fix: remove unused function

pull/59/head
sammyette 2021-05-16 06:55:11 -04:00
parent b86912be56
commit dfb8ec9a90
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5
1 changed files with 0 additions and 28 deletions

View File

@ -181,31 +181,3 @@ func HandleHistory(cmd string) {
// TODO: load history again (history shared between sessions like this ye) // TODO: load history again (history shared between sessions like this ye)
} }
func StartMultiline(prev string, sb *strings.Builder) bool {
// sb fromt outside is passed so we can
// save input from previous prompts
if sb.String() == "" {
sb.WriteString(prev + " ")
}
fmt.Print(multilinePrompt)
reader := bufio.NewReader(os.Stdin)
cont, err := reader.ReadString('\n')
cont = strings.TrimSuffix(cont, "\n") + " "
if err == io.EOF {
// Exit when ^D
fmt.Println("")
return true
}
sb.WriteString(cont)
err = execCommand(sb.String())
if err != nil && syntax.IsIncomplete(err) {
return false
}
return true
}