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

Diff for /src/usr.bin/mg/word.c between version 1.4 and 1.5

version 1.4, 2001/01/29 01:58:10 version 1.5, 2001/05/24 03:05:28
Line 2 
Line 2 
   
 /*  /*
  *              Word mode commands.   *              Word mode commands.
  * The routines in this file implement commands that work word at a time.   * The routines in this file implement commands that work word at a time.
  * There are all sorts of word mode commands.   * There are all sorts of word mode commands.
  */   */
   
 #include "def.h"  #include "def.h"
   
 /*  /*
  * Move the cursor backward by "n" words. All of the details of motion are   * Move the cursor backward by "n" words. All of the details of motion are
  * performed by the "backchar" and "forwchar" routines.   * performed by the "backchar" and "forwchar" routines.
  */   */
 /* ARGSUSED */  /* ARGSUSED */
Line 124 
Line 124 
   
 /*  /*
  * Move the cursor forward by the specified number of words.  As you move   * Move the cursor forward by the specified number of words.  As you move
  * convert the first character of the word to upper case, and subsequent   * convert the first character of the word to upper case, and subsequent
  * characters to lower case.  Error if you try to move past the end of the   * characters to lower case.  Error if you try to move past the end of the
  * buffer.   * buffer.
  */   */
 /* ARGSUSED */  /* ARGSUSED */
Line 211 
Line 211 
 }  }
   
 /*  /*
  * Kill backwards by "n" words.  The rules for success and failure are now   * Kill backwards by "n" words.  The rules for success and failure are now
  * different, to prevent strange behavior at the start of the buffer.  The   * different, to prevent strange behavior at the start of the buffer.  The
  * command only fails if something goes wrong with the actual delete of the   * command only fails if something goes wrong with the actual delete of the
  * characters.  It is successful even if no characters are deleted, or if you   * characters.  It is successful even if no characters are deleted, or if you
  * say delete 5 words, and there are only 4 words left.  I considered making   * say delete 5 words, and there are only 4 words left.  I considered making
  * the first call to "backchar" special, but decided that that would just be   * the first call to "backchar" special, but decided that that would just be
  * weird. Normally this is bound to "M-Rubout" and to "M-Backspace".   * weird. Normally this is bound to "M-Rubout" and to "M-Backspace".
  */   */
 /* ARGSUSED */  /* ARGSUSED */

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5