Skip to content

Commit

Permalink
Replace set_position with position
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Walrus committed Jul 21, 2022
1 parent 116baa3 commit bf75a6d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions helix-term/src/ui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ pub fn regex_prompt(
let call: job::Callback = Box::new(
move |_editor: &mut Editor, compositor: &mut Compositor| {
let contents = Text::new(format!("{}", err));
let mut popup = Popup::new("invalid-regex", contents);
let size = compositor.size();
let mut popup = Popup::new("invalid-regex", contents)
.position(Some(helix_core::Position::new(
size.height as usize - 2, // 2 = statusline + commandline
0,
)));
popup.required_size((size.width, size.height));
popup.set_position(Some(helix_core::Position::new(
size.height as usize - 2, // 2 = statusline + commandline
0,
)));

compositor.replace_or_push("invalid-regex", popup);
},
Expand Down

0 comments on commit bf75a6d

Please sign in to comment.