Fix regression causing variable completions to not have description

Regressed in 17bd7d0 (Switch completion_request_options_t from a list of flags to a struct, 2022-06-07).
This commit is contained in:
kerty 2025-01-24 14:48:55 +03:00 committed by Johannes Altmanninger
parent 93ac5d0eb3
commit acadf00718

View File

@ -1676,7 +1676,7 @@ impl<'ctx> Completer<'ctx> {
};
let mut desc = WString::new();
if self.flags.descriptions && self.flags.autosuggestion {
if self.flags.descriptions && !self.flags.autosuggestion {
// $history can be huge, don't put all of it in the completion description; see
// #6288.
if env_name == "history" {