mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
[Config] Skip single element options.
This commit is contained in:
parent
e3f41474fd
commit
50ac47e24e
1 changed files with 3 additions and 0 deletions
|
@ -539,6 +539,9 @@ void config_parse_cmd_options(void) {
|
|||
extern char **stored_argv;
|
||||
for (int in = 1; in < (stored_argc - 1); in++) {
|
||||
if (stored_argv[in][0] == '-') {
|
||||
if (stored_argv[in + 1][0] == '-') {
|
||||
continue;
|
||||
}
|
||||
/** TODO: This is a hack, and should be fixed in a nicer way. */
|
||||
char **tokens = g_strsplit(stored_argv[in], "-", 3);
|
||||
int count = 1;
|
||||
|
|
Loading…
Reference in a new issue