diff -urN /usr/ports/editors/lpe/files/patch-ae lpe/files/patch-ae --- /usr/ports/editors/lpe/files/patch-ae Thu Jan 1 01:00:00 1970 +++ lpe/files/patch-ae Mon Apr 23 13:41:50 2001 @@ -0,0 +1,25 @@ +--- src/lpe.c Thu Apr 19 02:16:41 2001 ++++ src/lpe.c Thu Apr 19 03:08:30 2001 +@@ -48,13 +48,17 @@ + { + buffer *node; + +- while (the_buf->next != the_buf) ++ if (the_buf->text != NULL) + { +- node = the_buf->next; +- the_buf->next = the_buf->next->next; +- the_buf->next->prev = the_buf; +- free(node); ++ while (the_buf->next != the_buf) ++ { ++ node = the_buf->next; ++ the_buf->next = the_buf->next->next; ++ the_buf->next->prev = the_buf; ++ free(node); ++ } + } ++ + free(the_buf); + } +