[BACK]Return to extend.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mg

Diff for /src/usr.bin/mg/extend.c between version 1.13 and 1.14

version 1.13, 2001/05/23 22:36:13 version 1.14, 2001/05/23 23:29:47
Line 351 
Line 351 
         } else {          } else {
 #endif /* !NO_STARTUP */  #endif /* !NO_STARTUP */
 #endif /* !NO_MACRO */  #endif /* !NO_MACRO */
                 (void)strcpy(prompt, p);                  pep = prompt + strlcpy(prompt, p, sizeof(prompt));
                 pep = prompt + strlen(prompt);  
                 for (;;) {                  for (;;) {
                         ewprintf("%s", prompt);                          ewprintf("%s", prompt);
                         pep[-1] = ' ';                          pep[-1] = ' ';
                         pep = keyname(pep, c = getkey(FALSE));                          pep = keyname(pep, sizeof(prompt) - (pep - prompt),
                               c = getkey(FALSE));
                         if (doscan(curmap, c, &curmap) != NULL)                          if (doscan(curmap, c, &curmap) != NULL)
                                 break;                                  break;
                         *pep++ = '-';                          *pep++ = '-';

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14