Diff for /freem/src/xecline.c between versions 1.30 and 1.31

version 1.30, 2025/05/20 16:20:42 version 1.31, 2025/05/20 18:07:41
Line 24 Line 24
  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.   *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
  *   *
  *   $Log$   *   $Log$
    *   Revision 1.31  2025/05/20 18:07:41  snw
    *   Add completion to debugger
    *
  *   Revision 1.30  2025/05/20 16:20:42  snw   *   Revision 1.30  2025/05/20 16:20:42  snw
  *   Update ROUTINE SSVN after ZEDIT and ZSAVE   *   Update ROUTINE SSVN after ZEDIT and ZSAVE
  *   *
Line 328  char **command_completion(const char *te Line 331  char **command_completion(const char *te
 {  {
     if (start > 0) return NULL;      if (start > 0) return NULL;
     rl_attempted_completion_over = 1;      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)  char *command_generator(const char *text, int state)
Line 338  char *command_generator(const char *text Line 341  char *command_generator(const char *text
   
     if (!state) {      if (!state) {
         list_index = 0;          list_index = 0;
         len = strlen(text);          len = strlen (text);
     }      }
   
     while ((name = m_commands[list_index++])) {      while ((name = m_commands[list_index++])) {
         if (strncmp(name, text, len) == 0) {          if (strncmp (name, text, len) == 0) {
             return strdup(name);              return strdup (name);
         }          }
     }      }
   

Removed from v.1.30  
changed lines
  Added in v.1.31


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>