Skip to content

Commit

Permalink
Inline field definition in Editor::new
Browse files Browse the repository at this point in the history
  • Loading branch information
gibbz00 committed Feb 16, 2023
1 parent 6335989 commit 95b227a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions helix-view/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,6 @@ impl Editor {
) -> Self {
let conf = config.load();

let auto_pairs = (&conf.auto_pairs).into();
// HAXX: offset the render area height by 1 to account for prompt/commandline
area.height -= 1;

Expand Down Expand Up @@ -963,7 +962,7 @@ impl Editor {
last_motion: None,
last_completion: None,
config,
auto_pairs,
auto_pairs: (&conf.auto_pairs).into(),
exit_code: 0,
config_events: unbounded_channel(),
redraw_handle: Default::default(),
Expand Down

0 comments on commit 95b227a

Please sign in to comment.