From 125ca9ff731f97691bf1f4221ff671d4a41d6510 Mon Sep 17 00:00:00 2001 From: axel Date: Mon, 20 Nov 2006 23:14:12 +1000 Subject: [PATCH] Minor edits, whitespace fixes, etc. darcs-hash:20061120131412-ac50b-0d9bc9d3fb35b4c9831bdf3a606e9aa8df844478.gz --- reader.c | 10 +++++----- share/functions/__fish_print_help.fish | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/reader.c b/reader.c index 9cf71b6f6..7c4bbd7ee 100644 --- a/reader.c +++ b/reader.c @@ -1416,7 +1416,7 @@ static void handle_token_history( int forward, int reset ) 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 ); 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 ) ) { - 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 ) { break; } - debug( 3, L"ok pos" ); + //debug( 3, L"ok pos" ); if( !contains( tok_last( &tok ), &data->search_prev ) ) { @@ -2019,9 +2019,9 @@ wchar_t *reader_readline() */ tcgetattr(0,&old_modes); /* set the new modes */ - if( tcsetattr(0,TCSANOW,&shell_modes)) + if( tcsetattr(0,TCSANOW,&shell_modes)) { - wperror(L"tcsetattr"); + wperror(L"tcsetattr"); } while( !finished && !data->end_loop) diff --git a/share/functions/__fish_print_help.fish b/share/functions/__fish_print_help.fish index 15d489b8d..227df1213 100644 --- a/share/functions/__fish_print_help.fish +++ b/share/functions/__fish_print_help.fish @@ -6,9 +6,9 @@ function __fish_print_help -d (N_ "Print help message for the specified fish fun set -l cmd2 s/'\(.\)'\x08_/(set_color --underline)\\1(set_color normal)/g # This expression should take care of bold characters. It's not - # waterproof, since it doesn't check that the same character is - # used both before and after the backspace, since regular - # languages don't allow backreferences. + # waterproof, since it doesn't check that the same character is + # used both before and after the backspace, since regular + # languages don't allow backreferences. set -l cmd3 s/.\x08'\(.\)'/(set_color --bold)\\1(set_color normal)/g # Combine all expressions in a single variable @@ -22,6 +22,6 @@ function __fish_print_help -d (N_ "Print help message for the specified fish fun echo # Filter and print help - printf "%s\n" $help| tail -n (expr $lines - 5 ) | head -n (expr $lines - 8) | sed $sed_cmd + printf "%s\n" $help| tail -n (expr $lines - 5) | head -n (expr $lines - 8) | sed $sed_cmd end \ No newline at end of file