aboutsummaryrefslogtreecommitdiffstats
path: root/default-plugins/status-bar/src/second_line.rs
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2022-06-10 20:03:13 +0200
committerGitHub <noreply@github.com>2022-06-10 20:03:13 +0200
commit67d2673cae60954e8287c2a1f58a21a56e066afb (patch)
tree5c469728075ea59723951c6b535253e30ebeaec4 /default-plugins/status-bar/src/second_line.rs
parentadd: typos (diff)
downloadsl0ppij-67d2673cae60954e8287c2a1f58a21a56e066afb.tar.gz
sl0ppij-67d2673cae60954e8287c2a1f58a21a56e066afb.tar.xz
sl0ppij-67d2673cae60954e8287c2a1f58a21a56e066afb.zip
add(style): add trailing comma in match blocks (#1483)
This makes it easier to distinguish from normal blocks
Diffstat (limited to 'default-plugins/status-bar/src/second_line.rs')
-rw-r--r--default-plugins/status-bar/src/second_line.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/default-plugins/status-bar/src/second_line.rs b/default-plugins/status-bar/src/second_line.rs
index 9b654033..56a71e4b 100644
--- a/default-plugins/status-bar/src/second_line.rs
+++ b/default-plugins/status-bar/src/second_line.rs
@@ -224,7 +224,7 @@ fn shortened_shortcut_list(help: &ModeInfo, tip: TipFn) -> LinePart {
InputMode::Tmux => short_tmux_mode_indication(help),
InputMode::RenamePane => {
shortened_shortcut_list_nonstandard_mode(select_pane_shortcut)(help)
- }
+ },
_ => shortened_shortcut_list_nonstandard_mode(confirm_pane_selection)(help),
}
}
@@ -279,7 +279,7 @@ fn best_effort_shortcut_list(help: &ModeInfo, tip: TipFn, max_len: usize) -> Lin
} else {
LinePart::default()
}
- }
+ },
InputMode::Locked => {
let line_part = locked_interface_indication(help.style.colors);
if line_part.len <= max_len {
@@ -287,11 +287,11 @@ fn best_effort_shortcut_list(help: &ModeInfo, tip: TipFn, max_len: usize) -> Lin
} else {
LinePart::default()
}
- }
+ },
InputMode::Tmux => best_effort_tmux_shortcut_list(help, max_len),
InputMode::RenamePane => {
best_effort_shortcut_list_nonstandard_mode(select_pane_shortcut)(help, max_len)
- }
+ },
_ => best_effort_shortcut_list_nonstandard_mode(confirm_pane_selection)(help, max_len),
}
}