Skip to content

tab_switcher: doesn't refresh for inactive pane, and auto closes on active pane when tab_switcher::CloseSelectedItem #43171

@ask4fusora

Description

@ask4fusora

Summary

tab_switcher: doesn't refresh for inactive pane, and auto closes on active pane when tab_switcher::CloseSelectedItem.

Description

  • List does not refresh when closing tabs on inactive panes.
  • List auto closes when the number of panes decreases.

Steps to reproduce:

  1. Create 2 panes.
  2. Put the cursor on 1 pane, and close the other pane's tabs with tab_switcher::ToggleAll and tab_switcher::CloseSelectedItem, you will get description 1.
  3. Create 2 panes.
  4. Put the cursor on 1 pane, and close ALL tabs of the active pane with tab_switcher::ToggleAll and tab_switcher::CloseSelectedItem, you will get description 2.

Expected Behavior:

Expected behavior
https://github.com/user-attachments/assets/809aa33d-cecd-45a6-9ad9-52529111b071

Should not auto close when closing an item.
Should refresh list when closing any item.

Actual Behavior:

Actual behavior

List does not refresh when closing tabs on inactive pane: https://github.com/user-attachments/assets/06700a73-e5bf-453c-8faa-dade8ba30c92

List auto closes when closing when the number of panes decreases: https://github.com/user-attachments/assets/3c752e28-a685-4aaa-b712-48fef374468a

Zed Version and System Specs

Zed: v0.213.3 (Zed)
OS: Windows 10.0.26200
Memory: 15.4 GiB
Architecture: x86_64
GPU: NVIDIA GeForce GTX 1660 Ti || NVIDIA Corporation || 581.29 r581_07

If applicable, attach your Zed.log file to this issue.

Zed.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions