]> git.sur5r.net Git - i3/i3/commitdiff
reload the config after editing it through i3-nagbar
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 13 Jul 2011 16:47:08 +0000 (18:47 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 13 Jul 2011 16:47:08 +0000 (18:47 +0200)
src/cfgparse.y

index a3aea46f42de143f5737887f9be08143a2c00153..dac63b95d385e4ca5dc5c192f12a051718cdd65f 100644 (file)
@@ -258,7 +258,7 @@ static void start_configerror_nagbar(const char *config_path) {
     if (configerror_pid == 0) {
         char *editaction,
              *pageraction;
-        if (asprintf(&editaction, TERM_EMU " -e sh -c \"${EDITOR:-vi} \"%s\"\"", config_path) == -1)
+        if (asprintf(&editaction, TERM_EMU " -e sh -c \"${EDITOR:-vi} \"%s\" && i3-msg reload\"", config_path) == -1)
             exit(1);
         if (asprintf(&pageraction, TERM_EMU " -e sh -c \"${PAGER:-less} \"%s\"\"", errorfilename) == -1)
             exit(1);