Skip to content

Commit

Permalink
Fix: typos and inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
0xrsp committed Dec 6, 2022
1 parent b602dd3 commit 609bbfb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions helix-term/src/ui/statusline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,18 +200,17 @@ where
let mut c = s.clone();
c.fg = s.bg;
c.bg = s.fg;
return c;
c
});

let mode_separator_string = match config.statusline.mode_separator {
let mode_separator = match config.statusline.mode_separator {
ModeSeparator::Angled => "",
ModeSeparator::Slanted => "",
ModeSeparator::Rounded => "",
ModeSeparator::Round => "",
ModeSeparator::Flat => unreachable!(),
}
.to_string();
};

write(context, mode_separator_string, mode_separator_style);
write(context, mode_separator.to_string(), mode_separator_style);
}
};
}
Expand Down
2 changes: 1 addition & 1 deletion helix-view/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ pub struct StatusLineConfig {
pub enum ModeSeparator {
Flat,
Angled,
Rounded,
Round,
Slanted,
}

Expand Down

0 comments on commit 609bbfb

Please sign in to comment.