From 29dd705d21a373c5bd011abfa6f55243b0d8d8a1 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Tue, 18 Mar 2014 05:55:38 +0100
Subject: [PATCH] In client, fixed bug hiding first entry in keybinding list
 drawings.

---
 src/client/draw_wins.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/client/draw_wins.c b/src/client/draw_wins.c
index 04927db..590d8c5 100644
--- a/src/client/draw_wins.c
+++ b/src/client/draw_wins.c
@@ -309,7 +309,7 @@ static void draw_titled_keybinding_list(char * title, struct Win * win,
 {
     uint8_t state = 0;
     uint16_t kb_n = 0;
-    for (; (0 == state || kb_n < kbdb->n_of_kbs); kb_n++)
+    while (0 == state || kb_n < kbdb->n_of_kbs)
     {
         if (0 == state)
         {
@@ -321,6 +321,7 @@ static void draw_titled_keybinding_list(char * title, struct Win * win,
         char * kb_line = get_kb_line(&kbdb->kbs[kb_n], win->linebreak);
         add_line(win, kb_line, 0, offset, (last * kbdb->n_of_kbs == kb_n + 1));
         free(kb_line);
+        kb_n++;
     }
     if (2 == state)
     {
-- 
2.30.2