Add missing fmt.Printf(prompt) for Menu.GetInput(string) func

This commit is contained in:
qowevisa 2024-10-22 22:52:00 +03:00
parent c083ee4f33
commit bc30cc2145

View File

@ -276,6 +276,7 @@ func (m *Menu) readInput() {
func (m *Menu) GetInput(prompt string) string {
nlCount := strings.Count(prompt, "\n")
fmt.Printf(prompt)
m.lineCounter += uint(nlCount)
stdinReader := bufio.NewReader(os.Stdin)
rawMsg, err := stdinReader.ReadString('\n')