mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-01 20:44:58 +08:00
Fix read in noninteractive mode problems reported by James Reeves
darcs-hash:20090222162206-ac50b-c293945986f75103120606a64133b59fe82c02a6.gz
This commit is contained in:
parent
f5be301a2f
commit
810262118a
|
@ -2158,6 +2158,8 @@ static int builtin_read( wchar_t **argv )
|
||||||
|
|
||||||
reader_set_buffer( commandline, wcslen( commandline ) );
|
reader_set_buffer( commandline, wcslen( commandline ) );
|
||||||
proc_push_interactive( 1 );
|
proc_push_interactive( 1 );
|
||||||
|
|
||||||
|
event_fire_generic(L"fish_prompt");
|
||||||
line = reader_readline( );
|
line = reader_readline( );
|
||||||
proc_pop_interactive();
|
proc_pop_interactive();
|
||||||
if( line )
|
if( line )
|
||||||
|
|
Loading…
Reference in New Issue
Block a user