@@ -246,7 +246,7 @@ fake_repl() do stdin_write, stdout_read, repl
246
246
write (stdin_write, " ;" )
247
247
readuntil (stdout_read, " shell> " )
248
248
Base. print_shell_escaped (stdin_write, Base. julia_cmd (). exec... , special= Base. shell_special)
249
- write (stdin_write, """ -e "println(\\ "HI\\ ")\" """ )
249
+ write (stdin_write, """ -e "println(\\ "HI\\ ")\" """ )
250
250
readuntil (stdout_read, " )\" " )
251
251
proc_stdout_read, proc_stdout = redirect_stdout ()
252
252
get_stdout = @async read (proc_stdout_read, String)
@@ -324,8 +324,16 @@ fake_repl() do stdin_write, stdout_read, repl
324
324
write (stdin_write, " \e [B\n " )
325
325
readuntil (stdout_read, s2)
326
326
327
- # Close REPL ^D
328
- write (stdin_write, ' \x 04' )
327
+ # test that prefix history search "passes through" key bindings to parent mode
328
+ write (stdin_write, " 0x321\n " )
329
+ readuntil (stdout_read, " 0x321" )
330
+ write (stdin_write, " \e [A\e [1;3C|||" ) # uparrow (go up history) and then Meta-rightarrow (indent right)
331
+ s2 = readuntil (stdout_read, " |||" , keep= true )
332
+ @test endswith (s2, " 0x321\r\e [13C|||" ) # should have a space (from Meta-rightarrow) and not
333
+ # have a spurious C before ||| (the one here is not spurious!)
334
+
335
+ # Delete line (^U) and close REPL (^D)
336
+ write (stdin_write, " \x 15\x 04" )
329
337
Base. wait (repltask)
330
338
331
339
nothing
0 commit comments