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.

Use a proper action when clicking navigate forward button

Kirill Bulatovb6786d5e41e4
diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rs
index 3e88469aa85..a9f1676c66c 100644
--- a/crates/workspace/src/pane.rs
+++ b/crates/workspace/src/pane.rs
@@ -195,7 +195,7 @@ struct NavHistoryState {
next_timestamp: Arc<AtomicUsize>,
}
-#[derive(Copy, Clone)]
+#[derive(Debug, Copy, Clone)]
pub enum NavigationMode {
Normal,
GoingBack,
@@ -1462,7 +1462,7 @@ impl Pane {
.icon_size(IconSize::Small)
.on_click({
let view = cx.view().clone();
- move |_, cx| view.update(cx, Self::navigate_backward)
+ move |_, cx| view.update(cx, Self::navigate_forward)
})
.disabled(!self.can_navigate_forward())
.tooltip(|cx| Tooltip::for_action("Go Forward", &GoForward, cx)),