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

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

version 1.13, 2005/11/18 20:56:53 version 1.14, 2006/07/25 08:22:32
Line 37 
Line 37 
                  * and scan back until we hit a <NL><SP> <NL><TAB> or                   * and scan back until we hit a <NL><SP> <NL><TAB> or
                  * <NL><NL>                   * <NL><NL>
                  */                   */
                 while (lback(curwp->w_dotp) != curbp->b_linep)                  while (lback(curwp->w_dotp) != curbp->b_headp)
                         if (llength(lback(curwp->w_dotp)) &&                          if (llength(lback(curwp->w_dotp)) &&
                             lgetc(curwp->w_dotp, 0) != ' ' &&                              lgetc(curwp->w_dotp, 0) != ' ' &&
                             lgetc(curwp->w_dotp, 0) != '.' &&                              lgetc(curwp->w_dotp, 0) != '.' &&
Line 47 
Line 47 
                                 if (llength(lback(curwp->w_dotp)) &&                                  if (llength(lback(curwp->w_dotp)) &&
                                     lgetc(curwp->w_dotp, 0) == '.') {                                      lgetc(curwp->w_dotp, 0) == '.') {
                                         curwp->w_dotp = lforw(curwp->w_dotp);                                          curwp->w_dotp = lforw(curwp->w_dotp);
                                         if (curwp->w_dotp == curbp->b_linep) {                                          if (curwp->w_dotp == curbp->b_headp) {
                                                 /*                                                  /*
                                                  * beyond end of buffer,                                                   * beyond end of buffer,
                                                  * cleanup time                                                   * cleanup time
Line 89 
Line 89 
                 curwp->w_dotp = lforw(curwp->w_dotp);                  curwp->w_dotp = lforw(curwp->w_dotp);
   
                 /* and scan forword until we hit a <NL><SP> or ... */                  /* and scan forword until we hit a <NL><SP> or ... */
                 while (curwp->w_dotp != curbp->b_linep) {                  while (curwp->w_dotp != curbp->b_headp) {
                         if (llength(curwp->w_dotp) &&                          if (llength(curwp->w_dotp) &&
                             lgetc(curwp->w_dotp, 0) != ' ' &&                              lgetc(curwp->w_dotp, 0) != ' ' &&
                             lgetc(curwp->w_dotp, 0) != '.' &&                              lgetc(curwp->w_dotp, 0) != '.' &&
Line 98 
Line 98 
                         else                          else
                                 break;                                  break;
                 }                  }
                 if (curwp->w_dotp == curbp->b_linep) {                  if (curwp->w_dotp == curbp->b_headp) {
                         /* beyond end of buffer, cleanup time */                          /* beyond end of buffer, cleanup time */
                         curwp->w_dotp = lback(curwp->w_dotp);                          curwp->w_dotp = lback(curwp->w_dotp);
                         curwp->w_doto = llength(curwp->w_dotp);                          curwp->w_doto = llength(curwp->w_dotp);

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