From 5ecf5aef8ad4deb80200f11b7f4d2af5ea50c0d3 Mon Sep 17 00:00:00 2001 From: kerty Date: Fri, 24 Jan 2025 14:48:55 +0300 Subject: [PATCH] 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). --- src/complete.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/complete.rs b/src/complete.rs index ee6ddc22c..d1baf69fd 100644 --- a/src/complete.rs +++ b/src/complete.rs @@ -1696,7 +1696,7 @@ fn complete_variable(&mut self, s: &wstr, start_offset: usize) -> bool { }; 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" {