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.
master
Benno Schulenberg 2019-08-17 13:21:34 +02:00
parent 82f5fed45a
commit 07ec7de8eb
1 changed files with 0 additions and 7 deletions

View File

@ -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,