remove useless call, fix comment

This commit is contained in:
Johannes Altmanninger 2019-09-10 00:01:39 +02:00 committed by ridiculousfish
parent 4b181df254
commit 6c5c0a73eb

View File

@ -417,7 +417,7 @@ class reader_data_t : public std::enable_shared_from_this<reader_data_t> {
/// Do what we need to do whenever our command line changes.
void command_line_changed(const editable_line_t *el);
/// Do what we need to do whenever our pager selection.
/// Do what we need to do whenever our pager selection changes.
void pager_selection_changed();
/// Expand abbreviations at the current cursor position, minus backtrack_amt.
@ -1606,8 +1606,6 @@ bool reader_data_t::handle_completions(const std::vector<completion_t> &comp,
prefix.append(el->text, prefix_start + len - PREFIX_MAX_LEN, PREFIX_MAX_LEN);
}
wchar_t quote;
parse_util_get_parameter_info(el->text, el->position, &quote, NULL, NULL);
// Update the pager data.
pager.set_prefix(prefix);
pager.set_completions(surviving_completions);