nano

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

commit b88152d82d0ba5f75a01203c01128130a68f9d07
parent 241771ceb58708387810b13bf75fb0df9f810aab
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Sun, 23 Apr 2006 01:33:37 +0000

more typo fixes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3416 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/help.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/help.c b/src/help.c @@ -423,12 +423,12 @@ void help_init(void) * of blank space. If this entry takes up more than * one entry's worth of space, use two to display * it. */ - if (strlen(space_ptr) + 1 > 7) + if (strlen(space_ptr) > 6) entries++; } else /* Otherwise, truncate it so that it takes up only * one entry's worth of space. */ - space_ptr[7] = '\0'; + space_ptr[6] = '\0'; ptr += sprintf(ptr, "^%s", space_ptr); @@ -471,7 +471,7 @@ void help_init(void) /* If we're here, we have at least two entries worth of * blank space. If this entry takes up more than one * entry's worth of space, use two to display it. */ - if (strlen(space_ptr) + 2 > 7) + if (strlen(space_ptr) > 5) entries++; ptr += sprintf(ptr, "M-%s", space_ptr);