Commit 12054fe1 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

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-d3aeb78583b8
parent 1307aae0
Showing with 3 additions and 3 deletions
+3 -3
...@@ -2512,7 +2512,7 @@ bool breakable(const char *line, ssize_t goal) ...@@ -2512,7 +2512,7 @@ bool breakable(const char *line, ssize_t goal)
/* If goal is not negative, the whole line (one word) was short /* If goal is not negative, the whole line (one word) was short
* enough. */ * enough. */
return goal >= 0; return (goal >= 0);
} }
/* We are trying to break a chunk off line. We find the last space such /* We are trying to break a chunk off line. We find the last space such
......
...@@ -3056,10 +3056,10 @@ void bottombars(const shortcut *s) ...@@ -3056,10 +3056,10 @@ void bottombars(const shortcut *s)
* the whole string! We do not bother padding the entry with blanks. */ * the whole string! We do not bother padding the entry with blanks. */
void onekey(const char *keystroke, const char *desc, size_t len) void onekey(const char *keystroke, const char *desc, size_t len)
{ {
assert(keystroke != NULL && desc != NULL);
size_t keystroke_len = strlenpt(keystroke) + 1; size_t keystroke_len = strlenpt(keystroke) + 1;
assert(keystroke != NULL && desc != NULL);
wattron(bottomwin, A_REVERSE); wattron(bottomwin, A_REVERSE);
waddnstr(bottomwin, keystroke, actual_x(keystroke, len)); waddnstr(bottomwin, keystroke, actual_x(keystroke, len));
wattroff(bottomwin, A_REVERSE); wattroff(bottomwin, A_REVERSE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment