nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit c3f97bc9b72f14990fe08283666e029b6374d778
parent 4399b734db0280ce8859376aca28ae4aa7f7d252
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue,  2 Apr 2019 20:40:48 +0200

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.

Diffstat:
Msrc/rcfile.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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. */