/* If goal is not negative, the whole line (one word) was short
* enough. */
- return goal >= 0;
+ return (goal >= 0);
}
/* We are trying to break a chunk off line. We find the last space such
* the whole string! We do not bother padding the entry with blanks. */
void onekey(const char *keystroke, const char *desc, size_t len)
{
- assert(keystroke != NULL && desc != NULL);
-
size_t keystroke_len = strlenpt(keystroke) + 1;
+ assert(keystroke != NULL && desc != NULL);
+
wattron(bottomwin, A_REVERSE);
waddnstr(bottomwin, keystroke, actual_x(keystroke, len));
wattroff(bottomwin, A_REVERSE);