--- freem/src/xecline.c 2025/05/20 16:20:42 1.30 +++ freem/src/xecline.c 2025/05/20 18:07:41 1.31 @@ -1,5 +1,5 @@ /* - * $Id: xecline.c,v 1.30 2025/05/20 16:20:42 snw Exp $ + * $Id: xecline.c,v 1.31 2025/05/20 18:07:41 snw Exp $ * freem interpreter proper * * @@ -24,6 +24,9 @@ * along with FreeM. If not, see . * * $Log: xecline.c,v $ + * Revision 1.31 2025/05/20 18:07:41 snw + * Add completion to debugger + * * Revision 1.30 2025/05/20 16:20:42 snw * Update ROUTINE SSVN after ZEDIT and ZSAVE * @@ -328,7 +331,7 @@ char **command_completion(const char *te { if (start > 0) return NULL; rl_attempted_completion_over = 1; - return rl_completion_matches(text, command_generator); + return rl_completion_matches (text, command_generator); } char *command_generator(const char *text, int state) @@ -338,12 +341,12 @@ char *command_generator(const char *text if (!state) { list_index = 0; - len = strlen(text); + len = strlen (text); } while ((name = m_commands[list_index++])) { - if (strncmp(name, text, len) == 0) { - return strdup(name); + if (strncmp (name, text, len) == 0) { + return strdup (name); } }