commit 07ec7de8eb0762226be3947db7c8eb73d25d55ea
parent 82f5fed45a4159e2ac46fe6249e7367be9d18127
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sat, 17 Aug 2019 13:21:34 +0200
tweaks: remove a saving and restoring that has become superfluous
The previous commit saves and restores filename and linenumber for
each single included file (after globbing), so it is now redundant
to do it for each 'include' command.
Diffstat:
1 file changed, 0 insertions(+), 7 deletions(-)
diff --git a/src/rcfile.c b/src/rcfile.c
@@ -623,8 +623,6 @@ void parse_one_include(char *file, syntaxtype *syntax)
void parse_includes(char *ptr)
{
char *pattern, *expanded;
- char *was_nanorc = nanorc;
- size_t was_lineno = lineno;
glob_t files;
int result;
@@ -647,11 +645,6 @@ void parse_includes(char *ptr)
globfree(&files);
free(expanded);
-
- /* We're done with the included file(s). Restore the original
- * filename and line number position. */
- nanorc = was_nanorc;
- lineno = was_lineno;
}
/* Return the short value corresponding to the color named in colorname,