mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-11 07:34:32 +00:00
Fix bug where using the return builtin inside an if-block could cause the else-block to get executed
darcs-hash:20060831205320-ac50b-64ecbaa3ed5e32c1a815ba384a6831a8fd5e1b47.gz
This commit is contained in:
parent
e2b7a078f4
commit
827c88e4a1
1 changed files with 1 additions and 1 deletions
|
@ -2743,11 +2743,11 @@ static int builtin_return( wchar_t **argv )
|
|||
b = current_block;
|
||||
while( ( b->type != FUNCTION_CALL))
|
||||
{
|
||||
b->type = FAKE;
|
||||
b->skip=1;
|
||||
b = b->outer;
|
||||
}
|
||||
b->skip=1;
|
||||
// proc_set_last_status( status );
|
||||
|
||||
return status;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue