Code

Correct error checking
authorJonas Fonseca <fonseca@diku.dk>
Wed, 31 May 2006 23:41:52 +0000 (01:41 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Wed, 31 May 2006 23:41:52 +0000 (01:41 +0200)
Fixes: cc2d13642a837163fb0e35d87a51ff96b7bf3cb0
tig.c

diff --git a/tig.c b/tig.c
index 5f95896493c21e09a87f1ef3195d914c9e5516e5..851503f72a695eefc16d958a57b952b3b2494df0 100644 (file)
--- 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);