mirror of
https://github.com/vlang/v.git
synced 2025-09-16 10:57:25 -04:00
repl: make sure the prompt is output before user input (on windows) (#20035)
This commit is contained in:
parent
0b2feefd87
commit
f4937aef9e
@ -36,6 +36,7 @@ pub fn (mut r Readline) read_line_utf8(prompt string) ![]rune {
|
|||||||
r.previous_lines[0] = []rune{}
|
r.previous_lines[0] = []rune{}
|
||||||
}
|
}
|
||||||
print(r.prompt)
|
print(r.prompt)
|
||||||
|
unsafe { C.fflush(C.stdout) }
|
||||||
r.current = os.get_raw_line().runes()
|
r.current = os.get_raw_line().runes()
|
||||||
r.previous_lines[0] = []rune{}
|
r.previous_lines[0] = []rune{}
|
||||||
r.search_index = 0
|
r.search_index = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user