diff --git a/src/viewer/text/textarea.c b/src/viewer/text/textarea.c index c564baa27..725251de4 100644 --- a/src/viewer/text/textarea.c +++ b/src/viewer/text/textarea.c @@ -657,6 +657,7 @@ textarea_edit(int op, struct terminal *term_, struct form_state *fs_, struct string file; td = term_->textarea_data; + term_->textarea_data = NULL; assert(td); if (!td->fs || !init_string(&file)