Minor edits, whitespace fixes, etc.

darcs-hash:20061120131412-ac50b-0d9bc9d3fb35b4c9831bdf3a606e9aa8df844478.gz
This commit is contained in:
axel 2006-11-20 23:14:12 +10:00
parent bc1efb1556
commit 125ca9ff73
2 changed files with 9 additions and 9 deletions

View File

@ -1416,7 +1416,7 @@ static void handle_token_history( int forward, int reset )
else else
{ {
debug( 3, L"new '%ls'", data->token_history_buff ); //debug( 3, L"new '%ls'", data->token_history_buff );
for( tok_init( &tok, data->token_history_buff, TOK_ACCEPT_UNFINISHED ); for( tok_init( &tok, data->token_history_buff, TOK_ACCEPT_UNFINISHED );
tok_has_next( &tok); tok_has_next( &tok);
@ -1428,12 +1428,12 @@ static void handle_token_history( int forward, int reset )
{ {
if( wcsstr( tok_last( &tok ), data->search_buff ) ) if( wcsstr( tok_last( &tok ), data->search_buff ) )
{ {
debug( 3, L"Found token at pos %d\n", tok_get_pos( &tok ) ); //debug( 3, L"Found token at pos %d\n", tok_get_pos( &tok ) );
if( tok_get_pos( &tok ) >= current_pos ) if( tok_get_pos( &tok ) >= current_pos )
{ {
break; break;
} }
debug( 3, L"ok pos" ); //debug( 3, L"ok pos" );
if( !contains( tok_last( &tok ), &data->search_prev ) ) if( !contains( tok_last( &tok ), &data->search_prev ) )
{ {