nano

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

commit 61f5c55f7b2d6fc7c29a2dfd76a83c3e6c276abe
parent 30f278f4a860357f3fd193692081e32a268a9b93
Author: Chris Allegretta <chrisa@asty.org>
Date:   Sat, 31 Jan 2009 23:36:00 +0000

2009-01-29 Chris Allegretta <chrisa@asty.org>
	* nano.c (move_to_filestruct) - properky initialize new fileage for multiswatching, sigh.
	  Fix cut sefaults discovered by Mike Frysinger.
		 


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

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

diff --git a/ChangeLog b/ChangeLog @@ -1,4 +1,8 @@ 2009-01-29 Chris Allegretta <chrisa@asty.org> + * nano.c (move_to_filestruct) - properky initialize new fileage for multiswatching, sigh. + Fix cut sefaults discovered by Mike Frysinger. + +2009-01-29 Chris Allegretta <chrisa@asty.org> * nano.c (main): Add support for nano acting like a pager when invoked with - as first file argument. diff --git a/src/nano.c b/src/nano.c @@ -368,6 +368,10 @@ void move_to_filestruct(filestruct **file_top, filestruct **file_bot, openfile->fileage->data = mallocstrcpy(NULL, ""); openfile->filebot = openfile->fileage; +#ifdef ENABLE_COLOR + openfile->fileage->multiswatching = NULL; +#endif + /* Restore the current line and cursor position. If the mark begins * inside the partition, set the beginning of the mark to where the * saved text used to start. */