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.

Fix broken dock command

Mikayla Maki8860346324f1
diff --git a/assets/keymaps/default.json b/assets/keymaps/default.json
index 4ea6b22f612..0afc7f59cd3 100644
--- a/assets/keymaps/default.json
+++ b/assets/keymaps/default.json
@@ -456,7 +456,7 @@
}
},
{
- "context": "Dock > Pane",
+ "context": "Pane && docked",
"bindings": {
"shift-escape": "dock::HideDock",
"cmd-escape": "dock::RemoveTabFromDock"
diff --git a/crates/gpui/src/keymap_matcher.rs b/crates/gpui/src/keymap_matcher.rs
index ca5b5265ce5..9b05c2be5a1 100644
--- a/crates/gpui/src/keymap_matcher.rs
+++ b/crates/gpui/src/keymap_matcher.rs
@@ -89,7 +89,6 @@ impl KeymapMatcher {
self.contexts
.extend(dispatch_path.iter_mut().map(|e| std::mem::take(&mut e.1)));
- dbg!(&self.contexts);
// Find the bindings which map the pending keystrokes and current context
for (i, (view_id, _)) in dispatch_path.iter().enumerate() {
// Don't require pending view entry if there are no pending keystrokes
@@ -121,8 +120,6 @@ impl KeymapMatcher {
}
}
- dbg!(&matched_bindings);
-
if !any_pending {
self.clear_pending();
}
diff --git a/crates/terminal_view/src/terminal_view.rs b/crates/terminal_view/src/terminal_view.rs
index 9907a65cdfa..7400950c3b8 100644
--- a/crates/terminal_view/src/terminal_view.rs
+++ b/crates/terminal_view/src/terminal_view.rs
@@ -483,9 +483,7 @@ impl View for TerminalView {
}
if mode.contains(TermMode::APP_KEYPAD) {
context.add_identifier("DECPAM");
- }
- //Note the ! here
- if !mode.contains(TermMode::APP_KEYPAD) {
+ } else {
context.add_identifier("DECPNM");
}
if mode.contains(TermMode::SHOW_CURSOR) {