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 handling of holding modifier to show edit prediction (#24580)

Michael Sloan63c0150cc244
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index bdf1fd90568..6d1ed150156 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -5102,7 +5102,7 @@ impl Editor {
window: &mut Window,
cx: &mut Context<Self>,
) {
- if !self.show_edit_predictions_in_menu(cx) {
+ if self.show_edit_predictions_in_menu(cx) {
let accept_binding =
AcceptEditPredictionBinding::resolve(self.focus_handle(cx), window);
if let Some(accept_keystroke) = accept_binding.keystroke() {