Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/commands/typed.rs')
-rw-r--r--helix-term/src/commands/typed.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs
index 4e1ac0da..fb03af44 100644
--- a/helix-term/src/commands/typed.rs
+++ b/helix-term/src/commands/typed.rs
@@ -1501,11 +1501,9 @@ fn run_shell_command(
format!("```sh\n{}\n```", output),
editor.syn_loader.clone(),
);
- let mut popup = Popup::new("shell", contents);
- popup.set_position(Some(helix_core::Position::new(
- editor.cursor().0.unwrap_or_default().row,
- 2,
- )));
+ let popup = Popup::new("shell", contents).position(Some(
+ helix_core::Position::new(editor.cursor().0.unwrap_or_default().row, 2),
+ ));
compositor.replace_or_push("shell", popup);
});
Ok(call)