add a cosmetic fix and a fix for a potential compilation problem exposed
by -pedantic git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2241 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
1307aae01a
commit
12054fe11b
|
@ -2512,7 +2512,7 @@ bool breakable(const char *line, ssize_t goal)
|
|||
|
||||
/* 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
|
||||
|
|
|
@ -3056,10 +3056,10 @@ void bottombars(const shortcut *s)
|
|||
* 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);
|
||||
|
|
Loading…
Reference in New Issue