From c306ac007c0dcb43a3b5beb2ee817e0498f99c2b Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Thu, 29 Jul 2021 14:13:28 -0600 Subject: [PATCH] Allow more time wrapping to complete synchronously We're seeing occasional flickers and wondering if this will help. Co-Authored-By: Max Brunsfeld --- zed/src/editor/display_map/wrap_map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zed/src/editor/display_map/wrap_map.rs b/zed/src/editor/display_map/wrap_map.rs index 11e6caa7fc4dd87243c280815f32a604abdca791..737424013d4f2a2cbdec3edebb7730c3b157fe03 100644 --- a/zed/src/editor/display_map/wrap_map.rs +++ b/zed/src/editor/display_map/wrap_map.rs @@ -209,7 +209,7 @@ impl WrapMap { match cx .background() - .block_with_timeout(Duration::from_micros(500), update_task) + .block_with_timeout(Duration::from_millis(1), update_task) { Ok(snapshot) => { self.snapshot = snapshot;