From 8e8d8ba0dacc7597a46f87e28c102f14248d365f Mon Sep 17 00:00:00 2001 From: daa Date: Wed, 4 Apr 2018 23:47:32 +0300 Subject: [PATCH] small update --- src/cmd_line.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd_line.rs b/src/cmd_line.rs index e2426d7..678c77d 100644 --- a/src/cmd_line.rs +++ b/src/cmd_line.rs @@ -477,6 +477,7 @@ impl CmdLine { popup_menu::update_css(&self.wild_css_provider, &render_state.color_model); // set width + // this calculation produce width more then needed, but this is looks ok :) let max_item_width = (items.iter().map(|item| item.len()).max().unwrap() as f64 * render_state.font_ctx.cell_metrics().char_width) as i32 + self.state.borrow().levels.last().unwrap().preferred_width;