aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/picker.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-12-22 07:48:34 +0000
committerBlaž Hrastnik2020-12-22 07:48:34 +0000
commitd61b4854b8da1cd8cc9d641526dedbd0be348640 (patch)
tree2ebcaed8df2aedeff29372308d8f19b02907fe09 /helix-term/src/ui/picker.rs
parent4749b39b88b3bedfd09c63fd332ece2b35c1ad3e (diff)
Make sure to clear the whole screen with the background color.
Diffstat (limited to 'helix-term/src/ui/picker.rs')
-rw-r--r--helix-term/src/ui/picker.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs
index 4190e548..d4e4d46d 100644
--- a/helix-term/src/ui/picker.rs
+++ b/helix-term/src/ui/picker.rs
@@ -197,9 +197,12 @@ impl<T> Component for Picker<T> {
// -- Render the frame:
// clear area
+ let background = cx.editor.theme.get("ui.background");
for y in area.top()..area.bottom() {
for x in area.left()..area.right() {
- surface.get_mut(x, y).reset()
+ let cell = surface.get_mut(x, y);
+ cell.symbol.clear();
+ cell.set_style(background);
}
}