fix: shell tab completion - ensure loop continues if file with non-.elf extension is encountered
This commit is contained in:
@@ -12,4 +12,4 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#define MONTAUK_BUILD_NUMBER 64
|
||||
#define MONTAUK_BUILD_NUMBER 76
|
||||
|
||||
@@ -57,10 +57,11 @@ int get_completions( // returns no. of results
|
||||
This is somewhat of a workaround.
|
||||
*/
|
||||
if (montauk::starts_with(names[i] + 3, (const char*)string)) {
|
||||
if (
|
||||
r > arrayMax ||
|
||||
!is_executable(names[i])
|
||||
) break;
|
||||
if (r > arrayMax)
|
||||
break;
|
||||
|
||||
if (!is_executable(names[i]))
|
||||
continue;
|
||||
|
||||
char* p = (char *)names[i] + 3;
|
||||
strip_elf_extension(p);
|
||||
|
||||
Reference in New Issue
Block a user