nano

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

commit dc7136a08295de0eb3bf369db6f2049ad65aa750
parent 77bf1b5197566e5fb996838b125df8295b82dded
Author: Chris Allegretta <chrisa@asty.org>
Date:   Thu, 21 Aug 2008 04:24:25 +0000

        * text.c (do_enter):  Fix issue when compiled with --enable-debug, fixes Savannah bug 24092.



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

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

diff --git a/ChangeLog b/ChangeLog @@ -1,9 +1,10 @@ 2008-08-21 Chris Allegretta <chrisa@asty.org> * text.c: Change error messages where we may possibly get into a bad state and urge the user to save when this happens. Originally by Benno Schulenberg <bensberg@justemail.net> + * text.c (do_enter): Fix issue when compiled with --enable-debug, fixes Savannah bug 24092. 2008-08-08 Magnus Granberg <zorry@ume.nu> / Adam Conrad <?> - * files.c: (write_file): Add needed flags to open() calls when writing out files. Fixes Savannah bug + * files.c (write_file): Add needed flags to open() calls when writing out files. Fixes Savannah bug #23827: Compilation fails with -D_FORTIFY_SOURCE=2 2008-08-08 Chris Allegretta <chrisa@asty.org> diff --git a/src/text.c b/src/text.c @@ -649,7 +649,7 @@ void do_enter(void) filestruct *newnode = make_new_node(openfile->current); size_t extra = 0; - assert(openfile->current != NULL && xopenfile->current->data != NULL); + assert(openfile->current != NULL && openfile->current->data != NULL); #ifndef NANO_TINY update_undo(SPLIT);