From 6bf2062a5b854798499a37a81efbbc51ba3428d8 Mon Sep 17 00:00:00 2001 From: Haru Kim Date: Sat, 30 Nov 2024 21:14:53 +0900 Subject: [PATCH] Fix the `autoscroll_on_clicks` setting working incorrectly --- crates/editor/src/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 6e729a654d06ed..339401ee467712 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -2967,7 +2967,7 @@ impl Editor { auto_scroll = false; } } - auto_scroll &= !EditorSettings::get_global(cx).autoscroll_on_clicks; + auto_scroll &= EditorSettings::get_global(cx).autoscroll_on_clicks; let point_to_delete: Option = { let selected_points: Vec> =