diff --git a/ChangeLog b/ChangeLog index 8baa69f45e24a20f9832dd020e89527ccd6b9324..cdc58d04e356cda49782e98fabb18ab14bfe335d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +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 index 5a72b24ab6e6d05b8c29c055fa586008a3eba89f..5f71c87605e97c413ee20bb937416a9bb3d716c7 100644 --- 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. */