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

Diff for /src/usr.bin/mg/search.c between version 1.23 and 1.24

version 1.23, 2005/10/11 01:00:41 version 1.24, 2005/11/18 17:35:17
Line 553 
Line 553 
                 switch (getkey(FALSE)) {                  switch (getkey(FALSE)) {
                 case 'y':                  case 'y':
                 case ' ':                  case ' ':
                         if (lreplace((RSIZE)plen, news, f) == FALSE)                          if (lreplace((RSIZE)plen, news) == FALSE)
                                 return (FALSE);                                  return (FALSE);
                         rcnt++;                          rcnt++;
                         break;                          break;
                 case '.':                  case '.':
                         if (lreplace((RSIZE)plen, news, f) == FALSE)                          if (lreplace((RSIZE)plen, news) == FALSE)
                                 return (FALSE);                                  return (FALSE);
                         rcnt++;                          rcnt++;
                         goto stopsearch;                          goto stopsearch;
Line 570 
Line 570 
                         goto stopsearch;                          goto stopsearch;
                 case '!':                  case '!':
                         do {                          do {
                                 if (lreplace((RSIZE)plen, news, f) == FALSE)                                  if (lreplace((RSIZE)plen, news) == FALSE)
                                         return (FALSE);                                          return (FALSE);
                                 rcnt++;                                  rcnt++;
                         } while (forwsrch() == TRUE);                          } while (forwsrch() == TRUE);
Line 617 
Line 617 
         plen = strlen(pat);          plen = strlen(pat);
         while (forwsrch() == TRUE) {          while (forwsrch() == TRUE) {
                 update();                  update();
                 if (lreplace((RSIZE)plen, news, f) == FALSE)                  if (lreplace((RSIZE)plen, news) == FALSE)
                         return (FALSE);                          return (FALSE);
   
                 rcnt++;                  rcnt++;

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24