From 90e91aca13b16bc2dceb630eb5d16a83ebd56648 Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Wed, 21 May 2014 08:56:16 +0200 Subject: [PATCH] Small column fix for entry box --- source/rofi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/rofi.c b/source/rofi.c index f2179dc8..146657b1 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -1072,7 +1072,8 @@ MenuReturn menu ( char **lines, char **input, char *prompt, Time *time, int *shi textbox *text = textbox_create ( box, TB_AUTOHEIGHT | TB_EDITABLE, ( config.padding ), ( config.padding ), - element_width, 1, + (config.hmode == HORIZONTAL)? + element_width:(w - (2 * ( config.padding ) ) ), 1, config.menu_font, config.menu_fg, config.menu_bg, ( input != NULL ) ? *input : "", prompt );