summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorQC <qball@gmpclient.org>2014-04-28 21:34:48 +0200
committerQC <qball@gmpclient.org>2014-04-28 21:34:48 +0200
commitab1b6e7127b07c39b090eb921754f7254519c86d (patch)
treed98ea25449a7a11c1b8b66b97092a86ad3a7a218 /source
parentfc88182484145fefa7b5c5a7c5e9feceb9520409 (diff)
Do not show separator line when no entry.
Diffstat (limited to 'source')
-rw-r--r--source/rofi.c2
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,