From ba1bfcd0db884e2a055d05130468293bbc245860 Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Sat, 24 Jul 2021 13:57:51 +0800 Subject: [PATCH] Fix filename completion after prompt adaptation. --- input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/input.c b/input.c index aee6f90..616d670 100644 --- a/input.c +++ b/input.c @@ -520,9 +520,9 @@ int getstring( const char *prompt, char *buf, int nbuf, int eolchar) static char tmp[] = "/tmp/meXXXXXX"; FILE *tmpf = NULL; #endif -/* Look for "Find file: ", "View file: ", "Insert file: ", "Write file: ", +/* Look for "find-file: ", "View file: ", "Insert file: ", "Write file: ", ** "Read file: ", "Execute file: " */ - file_f = NULL != strstr( prompt, " file: ") ; + file_f = NULL != strstr( prompt, "file: ") ; #endif cpos = 0;