home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fda7f4
)
In client, fixed bug hiding first entry in keybinding list drawings.
author
Christian Heller
<c.heller@plomlompom.de>
Tue, 18 Mar 2014 04:55:38 +0000
(
05:55
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Tue, 18 Mar 2014 04:55:38 +0000
(
05:55
+0100)
src/client/draw_wins.c
patch
|
blob
|
history
diff --git
a/src/client/draw_wins.c
b/src/client/draw_wins.c
index 04927db9af9d076f3ad092feb284074a7af1fe02..590d8c53cd49aa90afbc531c499fd05033a7d851 100644
(file)
--- 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)
{