Fix undoing an enter would not always properly unfold
This commit is contained in:
parent
226108a59f
commit
b145ce016b
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user