Skip to content

Commit e01179c

Browse files
xal-0vtjnashDilumAluthge
authored andcommitted
Print fallback REPL prompt before user input (#58210)
Using the fallback REPL interactively prints the prompt only after user input, making the scrollback confusing: ``` $ JULIA_FALLBACK_REPL=1 julia 1 + 2 julia> 3 ``` --------- Co-authored-by: Jameson Nash <[email protected]> Co-authored-by: Dilum Aluthge <[email protected]> (cherry picked from commit ccef01a)
1 parent 6bb1a24 commit e01179c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base/client.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,11 +439,12 @@ function run_fallback_repl(interactive::Bool)
439439
eval_user_input(stderr, ex, true)
440440
end
441441
else
442-
while !eof(input)
442+
while true
443443
if interactive
444444
print("julia> ")
445445
flush(stdout)
446446
end
447+
eof(input) && break
447448
try
448449
line = ""
449450
ex = nothing

0 commit comments

Comments
 (0)