diff options
author | 2012-08-24 17:06:02 +0400 | |
---|---|---|
committer | 2012-08-25 00:54:47 -0700 | |
commit | a2788129ffc45bce94bb35dbed4ea9f4a45d1e77 (patch) | |
tree | 96cf8b4da5a59e27f5967a6cd4c63097993c3801 | |
parent | 5bbf220077145b6c7df9716e45d8f10cc981f01a (diff) |
Minor updates
* Add -L/--long completion for 'set' command.
* Fix completion description color.
-rw-r--r-- | fish_pager.cpp | 2 | ||||
-rw-r--r-- | share/completions/set.fish | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/fish_pager.cpp b/fish_pager.cpp index 7c24b5f4..4fc0a44c 100644 --- a/fish_pager.cpp +++ b/fish_pager.cpp @@ -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 ); } diff --git a/share/completions/set.fish b/share/completions/set.fish index 86647e96..6db28053 100644 --- a/share/completions/set.fish +++ b/share/completions/set.fish @@ -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
\ No newline at end of file +complete -c set -u |