We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent babcbcf commit 02903d2Copy full SHA for 02903d2
crates/workspace/src/pane.rs
@@ -755,7 +755,7 @@ impl Pane {
755
}
756
757
pub(crate) fn set_pinned_count(&mut self, count: usize) {
758
- self.pinned_tab_count = count.min(self.items.len());
+ self.pinned_tab_count = count;
759
760
761
pub(crate) fn pinned_count(&self) -> usize {
crates/workspace/src/persistence/model.rs
@@ -473,7 +473,7 @@ impl SerializedPane {
473
})?;
474
475
pane.update(cx, |pane, _| {
476
- pane.set_pinned_count(self.pinned_count);
+ pane.set_pinned_count(self.pinned_count.min(items.len()));
477
478
479
anyhow::Ok(items)
0 commit comments