readline: fix input echo issue on musl-based systems

pull/4807/head^2
pancake 2020-05-10 06:39:31 +02:00 committed by GitHub
parent ba3a631954
commit 76eec7b6ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@ pub fn (r mut Readline) read_line_utf8(prompt string) ?ustring {
print(r.prompt) print(r.prompt)
for { for {
C.fflush(C.stdout)
c := r.read_char() c := r.read_char()
a := r.analyse(c) a := r.analyse(c)
if r.execute(a, c) { if r.execute(a, c) {