From 3787494c1557bcbd40ffd8f579e010e554da38e4 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Sun, 25 Dec 2016 12:14:25 +0100
Subject: [PATCH] help: don't crash when nano was started with --noread

There is no need to restore NOREAD_MODE after unsetting it, because
any files mentioned on the command line have already been /not/ read.
---
 src/help.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/help.c b/src/help.c
index ba67b741..3ef53d1b 100644
--- a/src/help.c
+++ b/src/help.c
@@ -142,6 +142,7 @@ void do_help(void)
     }
 
     UNSET(WHITESPACE_DISPLAY);
+    UNSET(NOREAD_MODE);
 
     bottombars(MHELP);
     wnoutrefresh(bottomwin);
-- 
GitLab