nano

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

commit 015c74093ac8dc53d711436305ec2ea35eb22d95
parent d31ddb789f19fea01ef98b2f64bacc41218c2abd
Author: Chris Allegretta <chrisa@asty.org>
Date:   Sat,  2 Aug 2008 14:39:42 +0000

Allow current undo code to compile with NANO_TINY



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

Diffstat:
Msrc/cut.c | 4++++
Msrc/nano.c | 2++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/cut.c b/src/cut.c @@ -223,7 +223,9 @@ void do_cut_text( /* Move text from the current filestruct into the cutbuffer. */ void do_cut_text_void(void) { +#ifndef NANO_TINY add_undo(CUT, openfile); +#endif do_cut_text( #ifndef NANO_TINY FALSE, FALSE, FALSE @@ -242,7 +244,9 @@ void do_copy_text(void) /* Cut from the current cursor position to the end of the file. */ void do_cut_till_end(void) { +#ifndef NANO_TINY add_undo(CUTTOEND, openfile); +#endif do_cut_text(FALSE, TRUE, FALSE); } #endif /* !NANO_TINY */ diff --git a/src/nano.c b/src/nano.c @@ -504,7 +504,9 @@ openfilestruct *make_new_opennode(void) newnode->filebot = NULL; newnode->edittop = NULL; newnode->current = NULL; +#ifndef NANO_TINY newnode->last_action = OTHER; +#endif return newnode; }