diff options
author | QC <qball@gmpclient.org> | 2014-04-28 21:34:48 +0200 |
---|---|---|
committer | QC <qball@gmpclient.org> | 2014-04-28 21:34:48 +0200 |
commit | ab1b6e7127b07c39b090eb921754f7254519c86d (patch) | |
tree | d98ea25449a7a11c1b8b66b97092a86ad3a7a218 /source | |
parent | fc88182484145fefa7b5c5a7c5e9feceb9520409 (diff) |
Do not show separator line when no entry.
Diffstat (limited to 'source')
-rw-r--r-- | source/rofi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/rofi.c b/source/rofi.c index aa3431a1..59c70bad 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -1186,7 +1186,7 @@ MenuReturn menu ( char **lines, char **input, char *prompt, Time *time, int *shi menu_draw ( text, boxes, max_lines, num_lines, &last_offset, selected, filtered ); // Why do we need the specian -1? - if ( config.wmode == VERTICAL ) + if ( config.wmode == VERTICAL && max_lines > 0) { XDrawLine ( display, main_window, gc, ( config.padding ), line_height + ( config.padding ) + ( LINE_MARGIN - 2 ) / 2, |