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

Diff for /src/usr.bin/mg/line.c between version 1.15 and 1.16

version 1.15, 2002/03/16 04:17:36 version 1.16, 2002/03/18 01:45:54
Line 201 
Line 201 
                         if (wp->w_markp == lp1)                          if (wp->w_markp == lp1)
                                 wp->w_markp = lp2;                                  wp->w_markp = lp2;
                 }                  }
                 if (!undoaction)                  undo_add_insert(lp2, 0, n);
                         undo_add_insert(lp2, 0, n);  
                 curwp->w_doto = n;                  curwp->w_doto = n;
                 return TRUE;                  return TRUE;
         }          }
Line 232 
Line 231 
                                 wp->w_marko += n;                                  wp->w_marko += n;
                 }                  }
         }          }
         if (!undoaction)          undo_add_insert(curwp->w_dotp, doto, n);
                 undo_add_insert(curwp->w_dotp, doto, n);  
         return TRUE;          return TRUE;
 }  }
   
Line 255 
Line 253 
   
         lchange(WFHARD);          lchange(WFHARD);
   
         if (!undoaction) {          /* XXX */
                 /* XXX */          undo_add_custom(1,INSERT, curwp->w_dotp, curwp->w_doto,
                 undo_add_custom(INSERT, curwp->w_dotp, curwp->w_doto,              strdup("\n"), 1);
                     strdup("\n"), 1);  
         }  
   
         /* Get the address and offset of "." */          /* Get the address and offset of "." */
         lp1 = curwp->w_dotp;          lp1 = curwp->w_dotp;
Line 328 
Line 324 
                 return FALSE;                  return FALSE;
         }          }
   
         if (!undoaction) {          undo_add_delete(curwp->w_dotp, curwp->w_doto, n);
                 undo_add_delete(curwp->w_dotp, curwp->w_doto, n);  
         }  
   
         /*          /*
          * HACK - doesn't matter, and fixes back-over-nl bug for empty           * HACK - doesn't matter, and fixes back-over-nl bug for empty
Line 494 
Line 488 
                 ewprintf("Buffer is read only");                  ewprintf("Buffer is read only");
                 return FALSE;                  return FALSE;
         }          }
   
           undo_add_change(curwp->w_dotp, curwp->w_doto, plen);
   
         /*          /*
          * Find the capitalization of the word that was found.  f says use           * Find the capitalization of the word that was found.  f says use

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16