From 8fe19e344f756a47f9a6deb1f313c2692417903f Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 28 Apr 2019 17:20:08 +0200 Subject: [PATCH] tweaks: use a more direct call when a single linestruct is deleted --- src/nano.c | 2 +- src/utils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nano.c b/src/nano.c index 17cdf440..58eb28cf 100644 --- a/src/nano.c +++ b/src/nano.c @@ -412,7 +412,7 @@ void ingraft_buffer(linestruct *somebuffer) filepart = partition_buffer(openfile->current, openfile->current_x, openfile->current, openfile->current_x); edittop_inside = (openfile->edittop == openfile->filetop); - free_lines(openfile->filetop); + delete_node(openfile->filetop); /* Put the top and bottom of the current buffer at the top and * bottom of the passed buffer. */ diff --git a/src/utils.c b/src/utils.c index 8a5e8499..d3b3df64 100644 --- a/src/utils.c +++ b/src/utils.c @@ -442,7 +442,7 @@ void remove_magicline(void) if (openfile->filebot->data[0] == '\0' && openfile->filebot != openfile->filetop) { openfile->filebot = openfile->filebot->prev; - free_lines(openfile->filebot->next); + delete_node(openfile->filebot->next); openfile->filebot->next = NULL; openfile->totsize--; }