mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
cli: remove formatting hint correclty when it's not the last element.
I noticed that the 'lightning-cli summary' output was wrong. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -408,7 +408,7 @@ static enum format delete_format_hint(const char *resp,
|
||||
format = HUMAN;
|
||||
|
||||
/* Don't let hint appear in the output! */
|
||||
json_tok_remove(toks, result, hint, 1);
|
||||
json_tok_remove(toks, result, hint-1, 1);
|
||||
return format;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user