From 7f84f498463d908108de05297fa0b4740909c696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20B=C3=BCrk?= Date: Fri, 13 Jan 2017 19:01:36 +0100 Subject: [PATCH] Don't exit() on redefined binding mode. (#2638) Doing a hard exit() is a rather harsh action for something i3 can handle perfectly fine and is only meant to be a check to make debugging easier for users in certain situations. --- src/config_directives.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/config_directives.c b/src/config_directives.c index 82e1a346..879d225e 100644 --- a/src/config_directives.c +++ b/src/config_directives.c @@ -124,14 +124,13 @@ CFGFUN(mode_binding, const char *bindtype, const char *modifiers, const char *ke CFGFUN(enter_mode, const char *pango_markup, const char *modename) { if (strcasecmp(modename, DEFAULT_BINDING_MODE) == 0) { ELOG("You cannot use the name %s for your mode\n", DEFAULT_BINDING_MODE); - exit(1); + return; } struct Mode *mode; SLIST_FOREACH(mode, &modes, modes) { if (strcmp(mode->name, modename) == 0) { ELOG("The binding mode with name \"%s\" is defined at least twice.\n", modename); - exit(1); } }