diff options
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c index b0235dba..604e10aa 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -1782,7 +1782,11 @@ struct cmd_results *config_command(char *exec, enum cmd_status block) { | |||
1782 | if (argc>1 && (*argv[1] == '\"' || *argv[1] == '\'')) { | 1782 | if (argc>1 && (*argv[1] == '\"' || *argv[1] == '\'')) { |
1783 | strip_quotes(argv[1]); | 1783 | strip_quotes(argv[1]); |
1784 | } | 1784 | } |
1785 | results = handler->handle(argc-1, argv+1); | 1785 | if (handler->handle) { |
1786 | results = handler->handle(argc-1, argv+1); | ||
1787 | } else { | ||
1788 | results = cmd_results_new(CMD_INVALID, argv[0], "This command is shimmed, but unimplemented"); | ||
1789 | } | ||
1786 | cleanup: | 1790 | cleanup: |
1787 | free_argv(argc, argv); | 1791 | free_argv(argc, argv); |
1788 | return results; | 1792 | return results; |