diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-06-21 19:52:15 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-06-21 19:52:15 +0200 |
commit | ce96be2d5edd516934d7f5d151effe22539b476c (patch) | |
tree | 465dc71b9a26a23004963ef5c1ff4dbe861d7b23 | |
parent | b56245cf5b52cecb922761cd1dc46489883b5d82 (diff) | |
download | xK-ce96be2d5edd516934d7f5d151effe22539b476c.tar.gz xK-ce96be2d5edd516934d7f5d151effe22539b476c.tar.xz xK-ce96be2d5edd516934d7f5d151effe22539b476c.zip |
degesch: show usage on /buffer move failure
-rw-r--r-- | degesch.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -5976,6 +5976,7 @@ handle_command_buffer (struct app_context *ctx, struct handler_args *a) // XXX: also build a prefix map? // TODO: some subcommand to print N last lines from the buffer + bool result = true; if (!strcasecmp_ascii (action, "list")) show_buffers_list (ctx); else if (!strcasecmp_ascii (action, "clear")) @@ -5985,11 +5986,11 @@ handle_command_buffer (struct app_context *ctx, struct handler_args *a) buffer_print_backlog (ctx, a->buffer); } else if (!strcasecmp_ascii (action, "move")) - handle_buffer_move (ctx, a); + result = handle_buffer_move (ctx, a); else if (!strcasecmp_ascii (action, "close")) handle_buffer_close (ctx, a); else - return false; + result = false; return true; } |