rcfile: read the syntax files in alphabetical order when globbing
The reading order must be predictable, otherwise things might get colored differently from system to system. This fixes https://savannah.gnu.org/bugs/?56012.master
parent
4399b734db
commit
c3f97bc9b7
|
@ -556,7 +556,7 @@ void parse_includes(char *ptr)
|
||||||
|
|
||||||
/* Expand a tilde first, then try to match the globbing pattern. */
|
/* Expand a tilde first, then try to match the globbing pattern. */
|
||||||
expanded = real_dir_from_tilde(pattern);
|
expanded = real_dir_from_tilde(pattern);
|
||||||
result = glob(expanded, GLOB_ERR|GLOB_NOSORT, NULL, &files);
|
result = glob(expanded, GLOB_ERR, NULL, &files);
|
||||||
|
|
||||||
/* If there are matches, process each of them. Otherwise, only
|
/* If there are matches, process each of them. Otherwise, only
|
||||||
* report an error if it's something other than zero matches. */
|
* report an error if it's something other than zero matches. */
|
||||||
|
|
Loading…
Reference in New Issue