diff options
author | maxfl <gmaxfl@gmail.com> | 2012-06-27 19:54:30 +0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-06-29 18:53:22 -0700 |
commit | 5fadb7f200fb0ffc9e596f8045c7068b78084684 (patch) | |
tree | 2c593fe40dbc15894cb9f9baedd1d94b4a129ae5 /fish_pager.cpp | |
parent | a02aa7a3166f2ba92cbb6eebc2b201ebb7a9f78b (diff) |
fix logic
Diffstat (limited to 'fish_pager.cpp')
-rw-r--r-- | fish_pager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fish_pager.cpp b/fish_pager.cpp index afcda674..62b1a352 100644 --- a/fish_pager.cpp +++ b/fish_pager.cpp @@ -391,7 +391,7 @@ static int print_max( const wchar_t *str, int max, int has_more ) /** Print the specified item using at the specified amount of space */ -static void completion_print_item( const wchar_t *prefix, comp_t *c, int width, bool primary ) +static void completion_print_item( const wchar_t *prefix, comp_t *c, int width, bool secondary ) { int comp_width=0, desc_width=0; int written=0; @@ -424,7 +424,7 @@ static void completion_print_item( const wchar_t *prefix, comp_t *c, int width, } - rgb_color_t bg = primary ? rgb_color_t::normal() : get_color(HIGHLIGHT_PAGER_SECONDARY); + rgb_color_t bg = secondary ? get_color(HIGHLIGHT_PAGER_SECONDARY) : rgb_color_t::normal(); for( size_t i=0; i<c->comp.size(); i++ ) { const wcstring &comp = c->comp.at(i); @@ -457,7 +457,7 @@ static void completion_print_item( const wchar_t *prefix, comp_t *c, int width, writech( L' '); } } - if ( !primary ) + if ( secondary ) set_color( rgb_color_t::normal(), rgb_color_t::normal() ); } |