summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-03-31 14:07:22 +0200
committerDave Davenport <qball@gmpclient.org>2017-03-31 14:07:22 +0200
commit738d7e2e0c8295b741b2eab3b2b46b8985c06e23 (patch)
tree24a5790d39840024a487f3a5cce5f7852e7401a1
parent18618ddbd1a03e673656471219962fce5fe9bd24 (diff)
Allow '/' as separator between modi. (#582)
-rw-r--r--source/rofi.c8
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 );