diff options
| author | a-kenji <aks.kenji@protonmail.com> | 2022-06-10 20:03:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-10 20:03:13 +0200 |
| commit | 67d2673cae60954e8287c2a1f58a21a56e066afb (patch) | |
| tree | 5c469728075ea59723951c6b535253e30ebeaec4 /default-plugins/status-bar/src/second_line.rs | |
| parent | add: typos (diff) | |
| download | sl0ppij-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.rs | 8 |
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), } } |
