Skip to content

Commit

Permalink
repl: make sure the prompt is output before user input (on windows) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
smalltalkman committed Nov 29, 2023
1 parent 0b2feef commit f4937ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vlib/readline/readline_windows.c.v
Expand Up @@ -36,6 +36,7 @@ pub fn (mut r Readline) read_line_utf8(prompt string) ![]rune {
r.previous_lines[0] = []rune{}
}
print(r.prompt)
unsafe { C.fflush(C.stdout) }
r.current = os.get_raw_line().runes()
r.previous_lines[0] = []rune{}
r.search_index = 0
Expand Down

0 comments on commit f4937ae

Please sign in to comment.