--- freem/src/xecline.c 2025/05/20 14:56:56 1.29 +++ freem/src/xecline.c 2025/05/20 18:07:41 1.31 @@ -1,5 +1,5 @@ /* - * $Id: xecline.c,v 1.29 2025/05/20 14:56:56 snw Exp $ + * $Id: xecline.c,v 1.31 2025/05/20 18:07:41 snw Exp $ * freem interpreter proper * * @@ -24,6 +24,12 @@ * 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 + * * Revision 1.29 2025/05/20 14:56:56 snw * Fix direct-mode interface to online help * @@ -325,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) @@ -335,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); } } @@ -5625,6 +5631,7 @@ zgo: } zsave (varnam); + ssvn_routine_update (); break;