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

Diff for /src/usr.bin/mg/match.c between version 1.19 and 1.20

version 1.19, 2015/06/03 23:40:01 version 1.20, 2019/06/26 16:42:30
Line 35 
Line 35 
         { '\0', '\0' }          { '\0', '\0' }
 };  };
   
   
 /*  /*
  * Hack to show matching paren.  Self-insert character, then show matching   * Self-insert character, then show matching character.
  * character, if any.  Bound to "blink-and-insert".   * Bound to "blink-and-insert".
    */
   int
   ask_showmatch(int f, int n)
   {
           char    *c, cbuf[2];
   
           if ((c = eread("Insert a character: ", cbuf, sizeof(cbuf),
               EFNEW)) == NULL || (c[0] == '\0'))
                   return (ABORT);
   
           key.k_chars[0] = *c;
           key.k_chars[1] = '\0';
           key.k_count = 1;
   
           return (showmatch(FFRAND, 1));
   }
   
   
   /*
    * Hack to show matching paren. Bound to balance stucture chars ),],}.
  */   */
 int  int
 showmatch(int f, int n)  showmatch(int f, int n)

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20