From: David Lawrence Ramsey Date: Fri, 7 Jan 2005 22:37:01 +0000 (+0000) Subject: add a cosmetic fix and a fix for a potential compilation problem exposed X-Git-Tag: v1.3.6~161 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=12054fe11b4aaaceeeddfa4bb43295d320ba7ded;p=nano.git 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 --- diff --git a/src/nano.c b/src/nano.c index 139a29cb..b9ba1cd9 100644 --- a/src/nano.c +++ b/src/nano.c @@ -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 diff --git a/src/winio.c b/src/winio.c index a86f771d..36868c98 100644 --- a/src/winio.c +++ b/src/winio.c @@ -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);