diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-03-04 19:41:06 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-03-04 19:41:06 +0100 |
commit | 3f4d58ef531a17d6667318a4e8f9390a383ffab6 (patch) | |
tree | 29aa6b8bd7c7420a236b3be2fd62404889d8ee53 /source/dialogs/combi.c | |
parent | 8ee37012d1b55e69a66fb88727b14c284b6a367f (diff) |
Indent code.
Diffstat (limited to 'source/dialogs/combi.c')
-rw-r--r-- | source/dialogs/combi.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/dialogs/combi.c b/source/dialogs/combi.c index 4699f151..3d408712 100644 --- a/source/dialogs/combi.c +++ b/source/dialogs/combi.c @@ -69,16 +69,18 @@ static void combi_mode_parse_switchers ( Mode *sw ) sizeof ( CombiMode ) * ( pd->num_switchers + 1 ) ); Mode *mode = rofi_collect_modi_search ( token ); - if ( mode ){ + if ( mode ) { pd->switchers[pd->num_switchers].disable = FALSE; pd->switchers[pd->num_switchers++].mode = mode; - } else { + } + else { // If not build in, use custom switchers. Mode *sw = script_switcher_parse_setup ( token ); if ( sw != NULL ) { pd->switchers[pd->num_switchers].disable = FALSE; pd->switchers[pd->num_switchers++].mode = sw; - } else { + } + else { // Report error, don't continue. fprintf ( stderr, "Invalid script switcher: %s\n", token ); token = NULL; |