Skip to content

Commit

Permalink
fix broken master
Browse files Browse the repository at this point in the history
  • Loading branch information
mangas committed Nov 14, 2022
1 parent d95ef77 commit 7c87431
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions helix-term/src/ui/statusline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,22 +134,20 @@ where
F: Fn(&mut RenderContext, String, Option<Style>) + Copy,
{
match element_id {
helix_view::editor::StatusLineElement::Mode => render_mode,
helix_view::editor::StatusLineElement::Spinner => render_lsp_spinner,
helix_view::editor::StatusLineElement::FileName => render_file_name,
helix_view::editor::StatusLineElement::FileEncoding => render_file_encoding,
helix_view::editor::StatusLineElement::FileLineEnding => render_file_line_ending,
helix_view::editor::StatusLineElement::FileType => render_file_type,
helix_view::editor::StatusLineElement::Diagnostics => render_diagnostics,
helix_view::editor::StatusLineElement::Selections => render_selections,
helix_view::editor::StatusLineElement::PrimarySelectionLength => {
render_primary_selection_length
}
helix_view::editor::StatusLineElement::Position => render_position,
helix_view::editor::StatusLineElement::PositionPercentage => render_position_percentage,
helix_view::editor::StatusLineElement::TotalLineNumbers => render_total_line_numbers,
helix_view::editor::StatusLineElement::Separator => render_separator,
helix_view::editor::StatusLineElement::Spacer => render_spacer,
StatusLineElementID::Mode => render_mode,
StatusLineElementID::Spinner => render_lsp_spinner,
StatusLineElementID::FileName => render_file_name,
StatusLineElementID::FileEncoding => render_file_encoding,
StatusLineElementID::FileLineEnding => render_file_line_ending,
StatusLineElementID::FileType => render_file_type,
StatusLineElementID::Diagnostics => render_diagnostics,
StatusLineElementID::Selections => render_selections,
StatusLineElementID::Position => render_position,
StatusLineElementID::PositionPercentage => render_position_percentage,
StatusLineElementID::TotalLineNumbers => render_total_line_numbers,
StatusLineElementID::Separator => render_separator,
StatusLineElementID::Spacer => render_spacer,
StatusLineElementID::PrimarySelectionLength => render_primary_selection_length,
}
}

Expand Down

0 comments on commit 7c87431

Please sign in to comment.