commit 4ea9160aee35cad007038d69d9cde257ae25864d from: Omar Polo date: Thu Jul 01 14:03:04 2021 UTC reset top_line/line_off too commit - 2bfa414d2b6906e3d9bb44b26eaa402cc6b76f2e commit + 4ea9160aee35cad007038d69d9cde257ae25864d blob - ac846f1c32fe2821e46e2d77d8881622fedb2732 blob + 8d079bbb91085bdc30ce8a6e1e4d57c0026790db --- wrap.c +++ wrap.c @@ -53,6 +53,8 @@ empty_vlist(struct buffer *buffer) { struct vline *vl, *t; + buffer->top_line = NULL; + buffer->line_off = 0; buffer->current_line = NULL; buffer->line_max = 0;