diff options
author | Geoff Nixon <geoff.nixon@aol.com> | 2014-02-27 03:15:00 -0800 |
---|---|---|
committer | Geoff Nixon <geoff.nixon@aol.com> | 2014-02-27 06:23:40 -0800 |
commit | ddcd2b0810087394d17bd80c46d74cca0acd8924 (patch) | |
tree | 575f58142aca93fd46ffb9c4bec18c388a7a42ce /pager.cpp | |
parent | 6d749789ce240a3e6f1447777db63fd8e7525560 (diff) |
Dead stores
Diffstat (limited to 'pager.cpp')
-rw-r--r-- | pager.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -147,7 +147,6 @@ line_t pager_t::completion_print_item(const wcstring &prefix, const comp_t *c, s } written += print_max(L"(", packed_color, 1, false, &line_data); written += print_max(c->desc, packed_color, desc_width, false, &line_data); - written += print_max(L")", packed_color, 1, false, &line_data); } else { @@ -635,7 +634,6 @@ bool pager_t::completion_try_print(size_t cols, const wcstring &prefix, const co /* We limit the width to term_width - 1 */ int search_field_written = print_max(SEARCH_FIELD_PROMPT, highlight_spec_normal, term_width - 1, false, search_field); - search_field_written += print_max(search_field_text, highlight_modifier_force_underline, term_width - search_field_written - 1, false, search_field); } } @@ -747,7 +745,7 @@ bool pager_t::select_next_completion_in_direction(selection_direction_t directio } /* Ok, we had something selected already. Select something different. */ - size_t new_selected_completion_idx = selected_completion_idx; + size_t new_selected_completion_idx; if (! selection_direction_is_cardinal(direction)) { /* Next, previous, or deselect, all easy */ |