diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 71b1f5e59..1c0084fc0 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -1937,7 +1937,11 @@ fn variables( Ok(vars) => { let mut s = String::new(); for var in vars { - s.push_str(&format!("{} = {}; ", var.name, var.value)); + let prefix = match var.data_type { + Some(data_type) => format!("{} ", data_type), + None => "".to_owned(), + }; + s.push_str(&format!("{}{} = {}; ", prefix, var.name, var.value)); } s }