diff options
| author | Daniel Jankowski <daniel.jankowski@rub.de> | 2025-01-18 09:40:31 +0100 |
|---|---|---|
| committer | Daniel Jankowski <daniel.jankowski@rub.de> | 2025-01-18 09:40:31 +0100 |
| commit | 78013c5e7d91c143520ca2545ec07cd58e46af6e (patch) | |
| tree | 6573149581e6c4d1a68b02678f651c8d00af5090 /src/frames.rs | |
| parent | feat: add pipe widget (diff) | |
| download | sl0pstatus-78013c5e7d91c143520ca2545ec07cd58e46af6e.tar.gz sl0pstatus-78013c5e7d91c143520ca2545ec07cd58e46af6e.tar.xz sl0pstatus-78013c5e7d91c143520ca2545ec07cd58e46af6e.zip | |
fix(frames): show frames in search mode
fixes #117
Diffstat (limited to 'src/frames.rs')
| -rw-r--r-- | src/frames.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/frames.rs b/src/frames.rs index 4ad1f9c..268636e 100644 --- a/src/frames.rs +++ b/src/frames.rs @@ -65,8 +65,8 @@ pub fn hide_frames_conditionally( config.hide_frames_except_for_search && should_show_frames_for_search(mode_info); let frames_for_fullscreen = config.hide_frames_except_for_fullscreen && should_show_frames_for_fullscreen(&panes); - let frames_for_single_pane = - config.hide_frames_for_single_pane && should_show_frames_for_multiple_panes(mode_info, &panes); + let frames_for_single_pane = config.hide_frames_for_single_pane + && should_show_frames_for_multiple_panes(mode_info, &panes); if (frames_for_search || frames_for_fullscreen || frames_for_single_pane) && !frame_enabled { toggle_pane_frames(); @@ -78,7 +78,7 @@ pub fn hide_frames_conditionally( } pub fn should_show_frames_for_search(mode_info: &ModeInfo) -> bool { - mode_info.mode == InputMode::EnterSearch + mode_info.mode == InputMode::EnterSearch || mode_info.mode == InputMode::Search } pub fn should_show_frames_for_fullscreen(panes: &[&PaneInfo]) -> bool { |
