chiark / gitweb /
Correct error checking
[tig] / 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);