From b38cbfe17325976b5030effbb80c05ef9b222a9e Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Mon, 24 Oct 2016 17:38:24 +0200
Subject: [PATCH] startup: always initialize 'margin' and 'editwincols'

This fixes https://savannah.gnu.org/bugs/?49428.
---
 src/nano.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/nano.c b/src/nano.c
index 03baa385..a0605925 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -2706,11 +2706,13 @@ int main(int argc, char **argv)
 		/* The margin has changed -- schedule a full refresh. */
 		refresh_needed = TRUE;
 	    }
-	} else {
+	} else
+#endif
+	{
 	    margin = 0;
 	    editwincols = COLS;
 	}
-#endif
+
 	if (currmenu != MMAIN)
 	    display_main_list();
 
-- 
GitLab