aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2013-03-07 19:33:52 -0500
committerRyan Kavanagh <rak@debian.org>2013-03-07 19:33:52 -0500
commit3ba11606cc8fe7809d479a2145bde0ddd3f4f3a6 (patch)
treea70bc04a4bda82a9bfd2e3ac70bd8e00cd55d4c4
parentWrap prototypes in __BEGIN_DECLS, as with best practice (diff)
Fix broken help key
-rw-r--r--nmm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nmm.c b/nmm.c
index 9144977..508a66a 100644
--- a/nmm.c
+++ b/nmm.c
@@ -1037,15 +1037,15 @@ getinput(scrgame *sg, char *inp, const int length)
mvwaddch(sg->score_w, promptrow, promptcol, ' ');
l--;
}
- } else if (ch == '?' && l == 0) {
- printinstrs(sg);
- mvwaddch(sg->score_w, promptrow, promptcol, ' ');
- l--;
} else {
inp[l] = (char) ch;
mvwaddch(sg->score_w, promptrow, promptcol + l, ch);
}
wrefresh(sg->score_w);
+ } else if (ch == '?' && l == 0) {
+ printinstrs(sg);
+ mvwaddch(sg->score_w, promptrow, promptcol, ' ');
+ l--;
} else if (ch == '\n') {
inp[l] = '\0';
break;