From d54ae09d3b7a5eb56050631a58e75a1d1686ea70 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Sat, 29 May 2021 10:37:47 +0900 Subject: ESC should exit both completion and insert mode --- helix-term/src/ui/picker.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'helix-term/src/ui/picker.rs') diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs index a715ebb5..4cff4917 100644 --- a/helix-term/src/ui/picker.rs +++ b/helix-term/src/ui/picker.rs @@ -122,14 +122,12 @@ fn inner_rect(area: Rect) -> Rect { let padding_vertical = area.height * 20 / 100; let padding_horizontal = area.width * 20 / 100; - let area = Rect::new( + Rect::new( area.x + padding_horizontal, area.y + padding_vertical, area.width - padding_horizontal * 2, area.height - padding_vertical * 2, - ); - - area + ) } impl Component for Picker { -- cgit v1.2.3-70-g09d2