mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 23:22:46 +08:00
Remove unused parameter from set_fully_disclosed()
This commit is contained in:
parent
368b68ff47
commit
12d4b50d5f
|
@ -809,7 +809,7 @@ bool pager_t::is_navigating_contents() const {
|
|||
return selected_completion_idx != PAGER_SELECTION_NONE;
|
||||
}
|
||||
|
||||
void pager_t::set_fully_disclosed(bool flag) { fully_disclosed = flag; }
|
||||
void pager_t::set_fully_disclosed() { fully_disclosed = true; }
|
||||
|
||||
const completion_t *pager_t::selected_completion(const page_rendering_t &rendering) const {
|
||||
const completion_t *result = nullptr;
|
||||
|
|
|
@ -186,7 +186,7 @@ class pager_t {
|
|||
bool is_navigating_contents() const;
|
||||
|
||||
// Become fully disclosed.
|
||||
void set_fully_disclosed(bool flag);
|
||||
void set_fully_disclosed();
|
||||
|
||||
// Position of the cursor.
|
||||
size_t cursor_position() const;
|
||||
|
|
|
@ -3295,7 +3295,7 @@ void reader_data_t::handle_readline_command(readline_cmd_t c, readline_loop_stat
|
|||
// The user typed complete more than once in a row. If we are not yet fully
|
||||
// disclosed, then become so; otherwise cycle through our available completions.
|
||||
if (current_page_rendering.remaining_to_disclose > 0) {
|
||||
pager.set_fully_disclosed(true);
|
||||
pager.set_fully_disclosed();
|
||||
} else {
|
||||
select_completion_in_direction(c == rl::complete ? selection_motion_t::next
|
||||
: selection_motion_t::prev);
|
||||
|
@ -3311,7 +3311,7 @@ void reader_data_t::handle_readline_command(readline_cmd_t c, readline_loop_stat
|
|||
// Toggle search, and begin navigating if we are now searching.
|
||||
bool sfs = pager.is_search_field_shown();
|
||||
pager.set_search_field_shown(!sfs);
|
||||
pager.set_fully_disclosed(true);
|
||||
pager.set_fully_disclosed();
|
||||
if (pager.is_search_field_shown() && !is_navigating_pager_contents()) {
|
||||
select_completion_in_direction(selection_motion_t::south);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user