Commit 925a0016 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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

No related merge requests found
Showing with 2 additions and 1 deletion
+2 -1
...@@ -1220,7 +1220,6 @@ void parse_rcfile(FILE *rcstream, bool syntax_only) ...@@ -1220,7 +1220,6 @@ void parse_rcfile(FILE *rcstream, bool syntax_only)
fclose(rcstream); fclose(rcstream);
lineno = 0; lineno = 0;
check_vitals_mapped();
return; return;
} }
...@@ -1285,6 +1284,8 @@ void do_rcfile(void) ...@@ -1285,6 +1284,8 @@ void do_rcfile(void)
parse_rcfile(rcstream, FALSE); parse_rcfile(rcstream, FALSE);
} }
check_vitals_mapped();
free(nanorc); free(nanorc);
nanorc = NULL; nanorc = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment