mirror of
https://github.com/lbonn/rofi
synced 2024-11-15 08:37:17 +00:00
Small fix.
This commit is contained in:
parent
69fdeded37
commit
241e4516c0
2 changed files with 4 additions and 5 deletions
|
@ -995,7 +995,7 @@ MenuReturn menu ( char **lines, char **input, char *prompt, Time *time, int *shi
|
|||
// then dividing by columns.
|
||||
unsigned int max_rows = MIN ( config.menu_lines,
|
||||
(unsigned int) (
|
||||
( num_lines + ( columns - num_lines % columns ) ) /
|
||||
( num_lines + ( columns - num_lines % columns ) % columns ) /
|
||||
( columns )
|
||||
) );
|
||||
|
||||
|
@ -1006,7 +1006,7 @@ MenuReturn menu ( char **lines, char **input, char *prompt, Time *time, int *shi
|
|||
// If it would fit in one column, only use one column.
|
||||
if ( num_lines < max_elements )
|
||||
{
|
||||
columns = ( num_lines + ( max_rows - num_lines % max_rows ) ) / max_rows;
|
||||
columns = ( num_lines + ( max_rows - num_lines % max_rows ) % max_rows ) / max_rows;
|
||||
max_elements = config.menu_lines * columns;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -185,9 +185,8 @@ void parse_xresource_free ( void )
|
|||
|
||||
void xresource_dump ( void )
|
||||
{
|
||||
const char * namePrefix = "rofi";
|
||||
const char * classPrefix = "rofi";
|
||||
unsigned int entries = sizeof ( xrmOptions ) / sizeof ( *xrmOptions );
|
||||
const char * namePrefix = "rofi";
|
||||
unsigned int entries = sizeof ( xrmOptions ) / sizeof ( *xrmOptions );
|
||||
for ( unsigned int i = 0; i < entries; ++i )
|
||||
{
|
||||
// Skip duplicates.
|
||||
|
|
Loading…
Reference in a new issue