[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] [PATCH] rcfile: read the syntax files in alphabetical order
From: |
Benno Schulenberg |
Subject: |
[Nano-devel] [PATCH] rcfile: read the syntax files in alphabetical order when globbing |
Date: |
Tue, 2 Apr 2019 20:50:35 +0200 |
The reading order must be predictable, otherwise things might get
colored differently from system to system, because the precedence
of syntaxes is different.
This fixes https://savannah.gnu.org/bugs/?56012.
---
src/rcfile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/rcfile.c b/src/rcfile.c
index 1df7e540..e6bb7e68 100644
--- a/src/rcfile.c
+++ b/src/rcfile.c
@@ -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. */
--
2.20.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Nano-devel] [PATCH] rcfile: read the syntax files in alphabetical order when globbing,
Benno Schulenberg <=