nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 925a0016586cee42090892a43f8e167418d8159d
parent 77023a749bff96c6220bab6054015a232d4d49a4
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Sun, 27 Nov 2016 16:40:54 +0100

rcfile: check the vital shortcuts just once, not for every included file

Diffstat:
Msrc/rcfile.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/rcfile.c b/src/rcfile.c @@ -1220,7 +1220,6 @@ void parse_rcfile(FILE *rcstream, bool syntax_only) fclose(rcstream); lineno = 0; - check_vitals_mapped(); return; } @@ -1285,6 +1284,8 @@ void do_rcfile(void) parse_rcfile(rcstream, FALSE); } + check_vitals_mapped(); + free(nanorc); nanorc = NULL;