diff --git a/ChangeLog b/ChangeLog index 209ba006..31e8f148 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-06-23 Benno Schulenberg + * src/winio.c (edit_draw): Verify that there exists multidata for the + found starting line before trying to use it. When a file is inserted + (^R), it will not have any precalculated multidata associated with it. + This fixes Savannah bug #45377 reported by Cody A. Taylor. + 2015-06-20 Benno Schulenberg * src/search.c (do_research): If nothing was searched for yet during this run of nano, take the most recent item from the search history. diff --git a/src/winio.c b/src/winio.c index b8f918bd..c152b64c 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2602,7 +2602,7 @@ void edit_draw(filestruct *fileptr, const char *converted, int /* If the found start has been qualified as an end earlier, * believe it and skip to the next step. */ - if (start_line != NULL && + if (start_line != NULL && start_line->multidata != NULL && start_line->multidata[tmpcolor->id] == CBEGINBEFORE) goto step_two;