mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-29 13:23:53 +08:00
Minor edits, whitespace fixes, etc.
darcs-hash:20061120131412-ac50b-0d9bc9d3fb35b4c9831bdf3a606e9aa8df844478.gz
This commit is contained in:
parent
bc1efb1556
commit
125ca9ff73
6
reader.c
6
reader.c
|
@ -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 ) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user