From: Jonas Fonseca Date: Wed, 31 May 2006 23:41:52 +0000 (+0200) Subject: Correct error checking X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fff1780fa68424dc1fcc8a44d6a2091a8a7b6f1e;p=tig.git Correct error checking Fixes: cc2d13642a837163fb0e35d87a51ff96b7bf3cb0 --- diff --git a/tig.c b/tig.c index 5f95896..851503f 100644 --- a/tig.c +++ b/tig.c @@ -2206,7 +2206,7 @@ static void load_help_page(void) } key = get_key(req_info[i].request); - if (string_format(buf, "%-25s %s", key, req_info[i].help)) + if (!string_format(buf, "%-25s %s", key, req_info[i].help)) continue; pager_read(view, buf);