Allow more time wrapping to complete synchronously

Nathan Sobo and Max Brunsfeld created

We're seeing occasional flickers and wondering if this will help.

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>

Change summary

zed/src/editor/display_map/wrap_map.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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;