[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.41 and 1.42

version 1.41, 2005/12/13 05:40:33 version 1.42, 2005/12/13 06:01:27
Line 360 
Line 360 
                 for (;;) {                  for (;;) {
                         ewprintf("%s", bprompt);                          ewprintf("%s", bprompt);
                         pep[-1] = ' ';                          pep[-1] = ' ';
                         pep = keyname(pep, sizeof(bprompt) -                          pep = getkeyname(pep, sizeof(bprompt) -
                             (pep - bprompt), c = getkey(FALSE));                              (pep - bprompt), c = getkey(FALSE));
                         if (doscan(curmap, c, &curmap) != NULL)                          if (doscan(curmap, c, &curmap) != NULL)
                                 break;                                  break;
Line 498 
Line 498 
  */   */
 /* ARGSUSED */  /* ARGSUSED */
 int  int
 define_key(int f, int n)  redefine_key(int f, int n)
 {  {
         static char      buf[48];          static char      buf[48];
         char             tmp[32], *bufp;          char             tmp[32], *bufp;
Line 747 
Line 747 
         } else if (fp == localbind || fp == localunbind) {          } else if (fp == localbind || fp == localunbind) {
                 bind = BINDARG;                  bind = BINDARG;
                 curmap = curbp->b_modes[curbp->b_nmodes]->p_map;                  curmap = curbp->b_modes[curbp->b_nmodes]->p_map;
         } else if (fp == define_key)          } else if (fp == redefine_key)
                 bind = BINDNEXT;                  bind = BINDNEXT;
         else          else
                 bind = BINDNO;                  bind = BINDNO;

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42