Minor updates

* Add -L/--long completion for 'set' command.
* Fix completion description color.
This commit is contained in:
maxfl 2012-08-24 17:06:02 +04:00 committed by ridiculousfish
parent 5bbf220077
commit a2788129ff
2 changed files with 3 additions and 2 deletions

View file

@ -444,8 +444,8 @@ static void completion_print_item( const wchar_t *prefix, comp_t *c, int width,
written++;
writech( L' ');
}
written += print_max( L"(", 1, 0 );
set_color( get_color( HIGHLIGHT_PAGER_DESCRIPTION ), bg);
written += print_max( L"(", 1, 0 );
written += print_max( c->desc.c_str(), desc_width, 0 );
written += print_max( L")", 1, 0 );
}

View file

@ -77,5 +77,6 @@ complete -c set -n '__fish_set_is_color' -s o -l bold --description 'Make font b
# Locale completions
complete -c set -n '__fish_is_first_token' -x -a '$__fish_locale_vars' -d 'Locale variable'
complete -c set -n '__fish_set_is_locale' -x -a '(locale -a)' -d (_ Locale)
complete -c set -s L -l long -d 'Do not truncate long lines'
complete -c set -u
complete -c set -u