gtkcompletionline.c: (scandir) don't use alphasort

sorting happens in the GtkTreeView
This commit is contained in:
wdlkmpx 2020-10-14 09:09:11 +08:00
parent 8f95488c2c
commit 4bc440cbb8
1 changed files with 2 additions and 2 deletions

View File

@ -440,7 +440,7 @@ static GList * generate_execs_list (char * pfix)
while (*path_gc_i)
{
struct dirent **eps;
int n = scandir (*path_gc_i, &eps, select_executables_only, alphasort);
int n = scandir (*path_gc_i, &eps, select_executables_only, NULL);
if (n >= 0) {
for (int j = 0; j < n; j++) {
execs_gc = g_list_prepend (execs_gc, g_strdup (eps[j]->d_name));
@ -493,7 +493,7 @@ static GList * generate_dirlist (const char * path)
char * file;
int n, len;
n = scandir (dir, &eps, select_executables_only, alphasort);
n = scandir (dir, &eps, select_executables_only, NULL);
if (n >= 0) {
for (int j = 0; j < n; j++)
{