Add missing fmt.Printf(prompt) for Menu.GetInput(string) func
This commit is contained in:
parent
c083ee4f33
commit
bc30cc2145
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue
Block a user