Fix undoing an enter would not always properly unfold

This commit is contained in:
rexy712 2022-07-11 15:33:30 -07:00
parent 226108a59f
commit b145ce016b

View File

@ -120,6 +120,7 @@ void delete_node(linestruct *line)
/* Disconnect a node from a linked list of linestructs and delete it. */ /* Disconnect a node from a linked list of linestructs and delete it. */
void unlink_node(linestruct *line) void unlink_node(linestruct *line)
{ {
UNFOLD_IF_FOLDED(line);
if (line->prev != NULL) if (line->prev != NULL)
line->prev->next = line->next; line->prev->next = line->next;
if (line->next != NULL) if (line->next != NULL)