From 9bce8bfeb35a0ea6a32a687aaf3eb3b90f090d3e Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 23 Mar 2018 19:14:56 +0100
Subject: [PATCH] build: fix compilation when configured with
 --disable-multibuffer

---
 src/nano.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/nano.c b/src/nano.c
index 8350d29f..955ec4ca 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -617,8 +617,9 @@ void die(const char *msg, ...)
 		}
 
 		filepart = NULL;
+#ifdef ENABLE_MULTIBUFFER
 		openfile = openfile->next;
-
+#endif
 		if (openfile == firstone)
 			break;
 	}
-- 
GitLab