From ad62e1e129c84c285b6c4f47d8d5e1a94fd6947b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= <blaz@mxxn.io>
Date: Mon, 7 Feb 2022 10:29:43 +0900
Subject: [PATCH] fix: Revert Block widget change that broke autoinfo
 background

---
 helix-tui/src/widgets/block.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helix-tui/src/widgets/block.rs b/helix-tui/src/widgets/block.rs
index f084a324..26223c3e 100644
--- a/helix-tui/src/widgets/block.rs
+++ b/helix-tui/src/widgets/block.rs
@@ -134,7 +134,7 @@ impl<'a> Widget for Block<'a> {
         if area.area() == 0 {
             return;
         }
-        buf.clear_with(area, self.style);
+        buf.set_style(area, self.style);
         let symbols = BorderType::line_symbols(self.border_type);
 
         // Sides