commit 7668bfe6f23e18a9dab80017ce9f5b8be9cfa7e9
parent 493f215513f196ff16b68e74af4447e21f81d4a0
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 22 Apr 2019 19:18:29 +0200
tweaks: remove a redundant, enclosed #ifdef
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/nano.c b/src/nano.c
@@ -493,13 +493,12 @@ void copy_from_buffer(linestruct *somebuffer)
/* Unlink a node from the rest of the circular list, and delete it. */
void unlink_opennode(openfilestruct *fileptr)
{
-#ifdef ENABLE_MULTIBUFFER
if (fileptr == firstfile)
firstfile = firstfile->next;
fileptr->prev->next = fileptr->next;
fileptr->next->prev = fileptr->prev;
-#endif
+
delete_opennode(fileptr);
}
@@ -516,7 +515,7 @@ void delete_opennode(openfilestruct *fileptr)
#endif
free(fileptr);
}
-#endif
+#endif /* ENABLE_MULTIBUFFER */
/* Display a warning about a key disabled in view mode. */
void print_view_warning(void)