nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 12054fe11b4aaaceeeddfa4bb43295d320ba7ded
parent 1307aae01a1f52f398a1abb93dbaa32153b5785d
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Fri,  7 Jan 2005 22:37:01 +0000

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

Diffstat:
Msrc/nano.c | 2+-
Msrc/winio.c | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git 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 @@ -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);