From: Christian Heller Date: Tue, 18 Mar 2014 04:55:38 +0000 (+0100) Subject: In client, fixed bug hiding first entry in keybinding list drawings. X-Git-Tag: tce~817 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/static/gitweb.css?a=commitdiff_plain;h=29dd705d21a373c5bd011abfa6f55243b0d8d8a1;p=plomrogue In client, fixed bug hiding first entry in keybinding list drawings. --- 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) {