diff options
| author | Aram Drevekenin <aram@poor.dev> | 2026-02-06 10:58:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-06 10:58:35 +0100 |
| commit | d45697a7f2416220dae69e73aac2ec32f6fd20b1 (patch) | |
| tree | b0232fe686f123ffb623997c7cfb1de9fb583873 /zellij-server/src/plugins/mod.rs | |
| parent | fix: scrolling with double/triple-click selection (#4681) (diff) | |
| download | sl0ppij-d45697a7f2416220dae69e73aac2ec32f6fd20b1.tar.gz sl0ppij-d45697a7f2416220dae69e73aac2ec32f6fd20b1.tar.xz sl0ppij-d45697a7f2416220dae69e73aac2ec32f6fd20b1.zip | |
refactor: make tab_ids stable (#4685)
* refactor: clear distinction between tab_id and tab_position
* add tab_id to TabInfo
* add test
* rustfmt
* add pr
Diffstat (limited to 'zellij-server/src/plugins/mod.rs')
| -rw-r--r-- | zellij-server/src/plugins/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zellij-server/src/plugins/mod.rs b/zellij-server/src/plugins/mod.rs index a72c1ffa..151c1bde 100644 --- a/zellij-server/src/plugins/mod.rs +++ b/zellij-server/src/plugins/mod.rs @@ -94,7 +94,7 @@ pub enum PluginInstruction { Option<TerminalAction>, Option<TiledPaneLayout>, Vec<FloatingPaneLayout>, - usize, // tab_index + usize, // tab_id Option<Vec<CommandOrPlugin>>, // initial_panes bool, // block_on_first_terminal bool, // should change focus to new tab @@ -502,7 +502,7 @@ pub(crate) fn plugin_thread_main( terminal_action, mut tab_layout, mut floating_panes_layout, - tab_index, + tab_id, initial_panes, block_on_first_terminal, should_change_focus_to_new_tab, @@ -580,7 +580,7 @@ pub(crate) fn plugin_thread_main( let skip_cache = false; match wasm_bridge.load_plugin( &run_plugin, - Some(tab_index), + Some(tab_id), size, cwd, skip_cache, @@ -603,7 +603,7 @@ pub(crate) fn plugin_thread_main( terminal_action, tab_layout, floating_panes_layout, - tab_index, + tab_id, plugin_ids, initial_panes, block_on_first_terminal, |
