diff options
author | QC <qball@gmpclient.org> | 2014-04-16 21:43:34 +0200 |
---|---|---|
committer | QC <qball@gmpclient.org> | 2014-04-16 21:43:34 +0200 |
commit | d64345ccbef1a6ef61a3e693084b6f73480fb176 (patch) | |
tree | 3aa1aa99ac5489aa7e80415563e31c94f2c5d9ba /source | |
parent | dcb2d64f96974e3951ef9f7a2e439b16860248f7 (diff) |
identify.
Diffstat (limited to 'source')
-rw-r--r-- | source/rofi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/rofi.c b/source/rofi.c index 1243052e..a614c93e 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -821,15 +821,15 @@ void menu_draw ( textbox *text, } else { - // Do pageinating - int page = selected/max_lines; - offset = page*max_lines; + // Do pageinating + int page = selected / max_lines; + offset = page * max_lines; *last_offset = offset; } - for ( i = 0; i < max_lines ; i++ ) + for ( i = 0; i < max_lines; i++ ) { - if ( (i+offset) >= num_lines || filtered[i + offset] == NULL ) + if ( ( i + offset ) >= num_lines || filtered[i + offset] == NULL ) { textbox_font ( boxes[i], config.menu_font, config.menu_fg, |