diff --git a/src/nano.c b/src/nano.c index 04f36793..922c6d52 100644 --- a/src/nano.c +++ b/src/nano.c @@ -120,6 +120,7 @@ void delete_node(linestruct *line) /* Disconnect a node from a linked list of linestructs and delete it. */ void unlink_node(linestruct *line) { + UNFOLD_IF_FOLDED(line); if (line->prev != NULL) line->prev->next = line->next; if (line->next != NULL)