mirror of https://github.com/davatorium/rofi.git
Allow '/' as separator between modi. (#582)
This commit is contained in:
parent
18618ddbd1
commit
738d7e2e0c
|
@ -346,9 +346,11 @@ static void help_print_disabled_mode ( const char *mode )
|
||||||
if ( is_term ) {
|
if ( is_term ) {
|
||||||
fprintf ( stderr, "Mode %s%s%s is not enabled. I have enabled it for now.\n",
|
fprintf ( stderr, "Mode %s%s%s is not enabled. I have enabled it for now.\n",
|
||||||
color_red, mode, color_reset);
|
color_red, mode, color_reset);
|
||||||
fprintf ( stderr, "Please consider adding %s%s%s to the %smodi%s option.\n",
|
fprintf ( stderr, "Please consider adding %s%s%s to the list of enabled modi: %smodi: %s%s%s,%s%s.\n",
|
||||||
color_red, mode, color_reset,
|
color_red, mode, color_reset,
|
||||||
color_green, color_reset);
|
color_green, config.modi,color_reset,
|
||||||
|
color_red, mode, color_reset
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
static void help_print_no_arguments ( void )
|
static void help_print_no_arguments ( void )
|
||||||
|
@ -604,7 +606,7 @@ static int add_mode ( const char * token )
|
||||||
}
|
}
|
||||||
static void setup_modi ( void )
|
static void setup_modi ( void )
|
||||||
{
|
{
|
||||||
const char *const sep = ",";
|
const char *const sep = ",/";
|
||||||
char *savept = NULL;
|
char *savept = NULL;
|
||||||
// Make a copy, as strtok will modify it.
|
// Make a copy, as strtok will modify it.
|
||||||
char *switcher_str = g_strdup ( config.modi );
|
char *switcher_str = g_strdup ( config.modi );
|
||||||
|
|
Loading…
Reference in New Issue