Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Notify when pinning a tab even if the tab isn't moved (#31880)

Joseph T. Lyons22d75b798e19
diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rs
index 6b109b98ff3..aedccd232c1 100644
--- a/crates/workspace/src/pane.rs
+++ b/crates/workspace/src/pane.rs
@@ -2063,7 +2063,9 @@ impl Pane {
self.set_preview_item_id(None, cx);
}
- if ix != destination_index {
+ if ix == destination_index {
+ cx.notify();
+ } else {
self.workspace
.update(cx, |_, cx| {
cx.defer_in(window, move |_, window, cx| {