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

Diff for /src/usr.bin/mg/util.c between version 1.44 and 1.45

version 1.44, 2022/05/24 16:24:31 version 1.45, 2023/03/08 04:43:11
Line 27 
Line 27 
  * position display; it does not truncate just because the screen does.   * position display; it does not truncate just because the screen does.
  * This is normally bound to "C-x =".   * This is normally bound to "C-x =".
  */   */
 /* ARGSUSED */  
 int  int
 showcpos(int f, int n)  showcpos(int f, int n)
 {  {
Line 126 
Line 125 
  * Normally bound to "C-t".  This always works within a line, so "WFEDIT"   * Normally bound to "C-t".  This always works within a line, so "WFEDIT"
  * is good enough.   * is good enough.
  */   */
 /* ARGSUSED */  
 int  int
 twiddle(int f, int n)  twiddle(int f, int n)
 {  {
Line 180 
Line 178 
  * subcommand processors.  They even handle the looping.  Normally this   * subcommand processors.  They even handle the looping.  Normally this
  * is bound to "C-o".   * is bound to "C-o".
  */   */
 /* ARGSUSED */  
 int  int
 openline(int f, int n)  openline(int f, int n)
 {  {
Line 208 
Line 205 
 /*  /*
  * Insert a newline.   * Insert a newline.
  */   */
 /* ARGSUSED */  
 int  int
 enewline(int f, int n)  enewline(int f, int n)
 {  {
Line 232 
Line 228 
  * the line. Normally this command is bound to "C-x C-o". Any argument is   * the line. Normally this command is bound to "C-x C-o". Any argument is
  * ignored.   * ignored.
  */   */
 /* ARGSUSED */  
 int  int
 deblank(int f, int n)  deblank(int f, int n)
 {  {
Line 269 
Line 264 
 /*  /*
  * Delete any whitespace around dot.   * Delete any whitespace around dot.
  */   */
 /* ARGSUSED */  
 int  int
 delwhite(int f, int n)  delwhite(int f, int n)
 {  {
Line 352 
Line 346 
  * right number of tabs and spaces.  Return TRUE if all ok.  Return FALSE if   * right number of tabs and spaces.  Return TRUE if all ok.  Return FALSE if
  * one of the subcommands failed. Normally bound to "C-m".   * one of the subcommands failed. Normally bound to "C-m".
  */   */
 /* ARGSUSED */  
 int  int
 lfindent(int f, int n)  lfindent(int f, int n)
 {  {
Line 430 
Line 423 
  * If any argument is present, it kills rather than deletes, to prevent loss   * If any argument is present, it kills rather than deletes, to prevent loss
  * of text if typed with a big argument.  Normally bound to "C-d".   * of text if typed with a big argument.  Normally bound to "C-d".
  */   */
 /* ARGSUSED */  
 int  int
 forwdel(int f, int n)  forwdel(int f, int n)
 {  {
Line 452 
Line 444 
  * other functions.  Just move the cursor back, and delete forwards.  Like   * other functions.  Just move the cursor back, and delete forwards.  Like
  * delete forward, this actually does a kill if presented with an argument.   * delete forward, this actually does a kill if presented with an argument.
  */   */
 /* ARGSUSED */  
 int  int
 backdel(int f, int n)  backdel(int f, int n)
 {  {
Line 474 
Line 465 
 }  }
   
 #ifdef  NOTAB  #ifdef  NOTAB
 /* ARGSUSED */  
 int  int
 space_to_tabstop(int f, int n)  space_to_tabstop(int f, int n)
 {  {

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45