Skip to content

Commit

Permalink
Fix read in noninteractive mode problems reported by James Reeves
Browse files Browse the repository at this point in the history
darcs-hash:20090222162206-ac50b-c293945986f75103120606a64133b59fe82c02a6.gz
  • Loading branch information
liljencrantz committed Feb 22, 2009
1 parent f5be301 commit 8102621
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builtin.c
Original file line number Diff line number Diff line change
Expand Up @@ -2158,6 +2158,8 @@ static int builtin_read( wchar_t **argv )

reader_set_buffer( commandline, wcslen( commandline ) );
proc_push_interactive( 1 );

event_fire_generic(L"fish_prompt");
line = reader_readline( );
proc_pop_interactive();
if( line )
Expand Down

0 comments on commit 8102621

Please sign in to comment.