mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-11 13:50:48 -05:00
Allow 0 line margin
This commit is contained in:
parent
2277501566
commit
353e82b27d
2 changed files with 4 additions and 4 deletions
|
@ -132,7 +132,7 @@ Settings config = {
|
|||
.fuzzy = FALSE,
|
||||
/** Monitor */
|
||||
.monitor = -1,
|
||||
.line_margin = 3,
|
||||
.line_margin = 2,
|
||||
.filter = NULL,
|
||||
.separator_style = "dash",
|
||||
};
|
||||
|
|
|
@ -487,10 +487,10 @@ void config_sanity_check ( )
|
|||
found_error = 1;
|
||||
}
|
||||
if ( 0 ) {
|
||||
if ( !( config.line_margin >= 3 && config.line_margin <= 50 ) ) {
|
||||
if ( !( config.line_margin <= 50 ) ) {
|
||||
g_string_append_printf ( msg, "\t<b>config.line_margin</b>=%d is invalid. Value should be between %d and %d.\n",
|
||||
config.line_margin, 3, 50 );
|
||||
config.line_margin = 3;
|
||||
config.line_margin, 0, 50 );
|
||||
config.line_margin = 2;
|
||||
found_error = 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue