Commit 75ac24b2 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Verifying that there exists multidata for the found starting line

before trying to use this multidata -- when a file is inserted, all
its lines will not have any multidata associated with them.


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5266 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 7 additions and 1 deletion
+7 -1
2015-06-23 Benno Schulenberg <bensberg@justemail.net>
* 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 <bensberg@justemail.net> 2015-06-20 Benno Schulenberg <bensberg@justemail.net>
* src/search.c (do_research): If nothing was searched for yet during * 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. this run of nano, take the most recent item from the search history.
......
...@@ -2602,7 +2602,7 @@ void edit_draw(filestruct *fileptr, const char *converted, int ...@@ -2602,7 +2602,7 @@ void edit_draw(filestruct *fileptr, const char *converted, int
/* If the found start has been qualified as an end earlier, /* If the found start has been qualified as an end earlier,
* believe it and skip to the next step. */ * 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) start_line->multidata[tmpcolor->id] == CBEGINBEFORE)
goto step_two; goto step_two;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment