nano

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

commit b39db7bc63ced20a256a0ba5eaf767fb415f6dba
parent 3cf338aca8b0543aca230bb5a4aa17769952aa8c
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Wed, 18 Jun 2014 20:01:30 +0000

And eliding a totally unused 'strdata2'.


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

Diffstat:
MChangeLog | 1+
Msrc/nano.h | 2--
Msrc/text.c | 1-
3 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -2,6 +2,7 @@ * src/text.c: Rename 'to_end' to 'to_eof', to lessen confusion with CUT_TO_END (which is about cutting to end-of-line). * src/text.c: Upon better thought, elide the unneeded 'to_eof'. + * src/text.c: And elide a totally unused 'strdata2'. 2014-06-18 Mark Majeres <mark@engine12.com> * src/text.c (add_undo): Don't start a new undo for CUT when the diff --git a/src/nano.h b/src/nano.h @@ -332,8 +332,6 @@ typedef struct undo { /* Where did this action begin or end. */ char *strdata; /* String type data we will use for copying the affected line back. */ - char *strdata2; - /* Sigh, need this too, it looks like. */ int xflags; /* Some flag data we need. */ diff --git a/src/text.c b/src/text.c @@ -889,7 +889,6 @@ void add_undo(undo_type current_action) fs->current_undo = u; } u->strdata = NULL; - u->strdata2 = NULL; u->cutbuffer = NULL; u->cutbottom = NULL; u->mark_set = FALSE;