diff options
| author | Daniel Jankowski <daniel.jankowski@rub.de> | 2025-01-02 20:20:03 +0100 |
|---|---|---|
| committer | Daniel Jankowski <daniel.jankowski@rub.de> | 2025-01-02 20:20:03 +0100 |
| commit | ce7db3522d3723526dd948c4fde0220012abb6dd (patch) | |
| tree | baee4102d9a42c0b1662c4c8f9ea930d9d61751b /src/frames.rs | |
| parent | ci: move to maintained create-release action (diff) | |
| download | sl0pstatus-ce7db3522d3723526dd948c4fde0220012abb6dd.tar.gz sl0pstatus-ce7db3522d3723526dd948c4fde0220012abb6dd.tar.xz sl0pstatus-ce7db3522d3723526dd948c4fde0220012abb6dd.zip | |
fix: zjframes only working on first tab
fixes #109
Diffstat (limited to 'src/frames.rs')
| -rw-r--r-- | src/frames.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/frames.rs b/src/frames.rs index d26ccdf..368d598 100644 --- a/src/frames.rs +++ b/src/frames.rs @@ -9,6 +9,7 @@ pub fn hide_frames_conditionally( pane_info: &PaneManifest, mode_info: &ModeInfo, plugin_pane_id: PluginIds, + is_zjframes: bool, ) { if !cfg_hide_frames_for_single_pane && !cfg_hide_frames_except_for_search @@ -24,8 +25,11 @@ pub fn hide_frames_conditionally( // check if we are running for the current tab since one plugin will run for // each tab. If we do not prevent execution, the screen will start to flicker - // 'cause every plugin will try to toggle the frames - if !is_plugin_for_current_tab(&panes, plugin_pane_id) { + // 'cause every plugin will try to toggle the frames. + // + // This is only relevant for zjstatus, not zjframes; as zjframes only + // runs once per session. + if !is_plugin_for_current_tab(&panes, plugin_pane_id) && !is_zjframes { return; } |
