From fff1780fa68424dc1fcc8a44d6a2091a8a7b6f1e Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Thu, 1 Jun 2006 01:41:52 +0200 Subject: [PATCH] Correct error checking Fixes: cc2d13642a837163fb0e35d87a51ff96b7bf3cb0 --- tig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.32.0.93.g670b81a890