Fix for wrong sense for determining when an autoloaded function has changed

Addresses some of the complaints in https://github.com/fish-shell/fish-shell/pull/201
This commit is contained in:
ridiculousfish
2012-07-06 15:30:27 -07:00
parent d07e78c59a
commit 11e56456a0
2 changed files with 6 additions and 6 deletions

View File

@@ -443,7 +443,7 @@ static void event_fire_internal( const event_t *event )
}
}
// debug( 1, L"Event handler fires command '%ls'", (wchar_t *)b->buff );
// debug( 1, L"Event handler fires command '%ls'", buffer.c_str() );
/*
Event handlers are not part of the main flow of code, so
@@ -454,7 +454,7 @@ static void event_fire_internal( const event_t *event )
parser_t &parser = parser_t::principal_parser();
parser.push_block( EVENT );
parser.current_block->state1<const event_t *>() = event;
parser.eval( buffer.c_str(), 0, TOP );
parser.eval( buffer, 0, TOP );
parser.pop_block();
proc_pop_interactive();
proc_set_last_status( prev_status );