From ce96be2d5edd516934d7f5d151effe22539b476c Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sun, 21 Jun 2015 19:52:15 +0200 Subject: degesch: show usage on /buffer move failure --- degesch.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/degesch.c b/degesch.c index b103d6b..88ea34a 100644 --- a/degesch.c +++ b/degesch.c @@ -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; } -- cgit v1.2.3-70-g09d2