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
Benno Schulenberg 2019-04-02 20:40:48 +02:00
parent 4399b734db
commit c3f97bc9b7
1 changed files with 1 additions and 1 deletions

View File

@ -556,7 +556,7 @@ void parse_includes(char *ptr)
/* Expand a tilde first, then try to match the globbing 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
* report an error if it's something other than zero matches. */