diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-03-31 14:07:22 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-03-31 14:07:22 +0200 |
commit | 738d7e2e0c8295b741b2eab3b2b46b8985c06e23 (patch) | |
tree | 24a5790d39840024a487f3a5cce5f7852e7401a1 /source/rofi.c | |
parent | 18618ddbd1a03e673656471219962fce5fe9bd24 (diff) |
Allow '/' as separator between modi. (#582)
Diffstat (limited to 'source/rofi.c')
-rw-r--r-- | source/rofi.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/rofi.c b/source/rofi.c index b165a41a..5d5aaea6 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -346,9 +346,11 @@ static void help_print_disabled_mode ( const char *mode ) if ( is_term ) { fprintf ( stderr, "Mode %s%s%s is not enabled. I have enabled it for now.\n", 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_green, color_reset); + color_green, config.modi,color_reset, + color_red, mode, color_reset + ); } } static void help_print_no_arguments ( void ) @@ -604,7 +606,7 @@ static int add_mode ( const char * token ) } static void setup_modi ( void ) { - const char *const sep = ","; + const char *const sep = ",/"; char *savept = NULL; // Make a copy, as strtok will modify it. char *switcher_str = g_strdup ( config.modi ); |