mirror of
				https://github.com/sammy-ette/Hilbish
				synced 2025-08-10 02:52:03 +00:00 
			
		
		
		
	fix: remove unused function
This commit is contained in:
		
							parent
							
								
									b86912be56
								
							
						
					
					
						commit
						dfb8ec9a90
					
				
							
								
								
									
										28
									
								
								shell.go
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								shell.go
									
									
									
									
									
								
							| @ -181,31 +181,3 @@ func HandleHistory(cmd string) { | ||||
| 	// 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 | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user