nano

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

commit e904888324491428dc09d23b2113889265ef0719
parent 8ff785cf402f5ae4819ffbd13aedcfe7565e93ad
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Thu, 20 Apr 2006 03:02:33 +0000

in renumber(), remove invalid assert


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

Diffstat:
MChangeLog | 5++++-
Msrc/nano.c | 2+-
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -66,7 +66,7 @@ CVS code - prepending fails. (DLR) - Simplify the routine for closing the file just before we indicate success on the statusbar. (DLR) - global.c: +- global.c: shortcut_init() - Change the cursor position display help text to use "display" instead of "show", for consistency. (DLR) @@ -76,6 +76,9 @@ CVS code - - In the global toggle list, move the "Constant cursor position display" toggle up to after the "Use more space for editing" toggle, for consistency. (DLR) +- nano.c: + renumber() + - Remove invalid assert. (DLR) - rcfile.c: parse_argument() - Rename variable ptr_bak to ptr_save, for consistency. (DLR) diff --git a/src/nano.c b/src/nano.c @@ -163,7 +163,7 @@ void renumber(filestruct *fileptr) { ssize_t line; - assert(fileptr != NULL && fileptr->prev != NULL); + assert(fileptr != NULL); line = (fileptr->prev == NULL) ? 0 : fileptr->prev->lineno;