rcfile: check the vital shortcuts just once, not for every included file
parent
77023a749b
commit
925a001658
|
@ -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)
|
||||||
parse_rcfile(rcstream, FALSE);
|
parse_rcfile(rcstream, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check_vitals_mapped();
|
||||||
|
|
||||||
free(nanorc);
|
free(nanorc);
|
||||||
nanorc = NULL;
|
nanorc = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue