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

Diff for /src/usr.bin/less/search.c between version 1.17 and 1.18

version 1.17, 2016/03/16 15:36:26 version 1.18, 2016/09/17 15:06:41
Line 208 
Line 208 
                 return;                  return;
         }          }
   
         for (slinenum = TOP;  slinenum < TOP + sc_height-1;  slinenum++) {          for (slinenum = TOP; slinenum < TOP + sc_height-1; slinenum++) {
                 pos = position(slinenum);                  pos = position(slinenum);
                 if (pos == -1)                  if (pos == -1)
                         continue;                          continue;
Line 405 
Line 405 
          * Hilites are sorted in the list; find where new one belongs.           * Hilites are sorted in the list; find where new one belongs.
          * Insert new one after ihl.           * Insert new one after ihl.
          */           */
         for (ihl = anchor;  ihl->hl_next != NULL;  ihl = ihl->hl_next)          for (ihl = anchor; ihl->hl_next != NULL; ihl = ihl->hl_next)
         {          {
                 if (ihl->hl_next->hl_startpos > hl->hl_startpos)                  if (ihl->hl_next->hl_startpos > hl->hl_startpos)
                         break;                          break;

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18