[BACK]Return to chared.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libedit

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libedit/chared.c between version 1.21 and 1.22

version 1.21, 2003/11/02 20:08:41 version 1.22, 2004/08/13 12:10:38
Line 135  c_delafter(EditLine *el, int num)
Line 135  c_delafter(EditLine *el, int num)
 }  }
   
   
   /* c_delafter1():
    *      Delete the character after the cursor, do not yank
    */
   protected void
   c_delafter1(EditLine *el)
   {
           char *cp;
   
           for (cp = el->el_line.cursor; cp <= el->el_line.lastchar; cp++)
                   *cp = cp[1];
   
           el->el_line.lastchar--;
   }
   
   
 /* c_delbefore():  /* c_delbefore():
  *      Delete num characters before the cursor   *      Delete num characters before the cursor
  */   */
Line 163  c_delbefore(EditLine *el, int num)
Line 178  c_delbefore(EditLine *el, int num)
 }  }
   
   
   /* c_delbefore1():
    *      Delete the character before the cursor, do not yank
    */
   protected void
   c_delbefore1(EditLine *el)
   {
           char *cp;
   
           for (cp = el->el_line.cursor - 1; cp <= el->el_line.lastchar; cp++)
                   *cp = cp[1];
   
           el->el_line.lastchar--;
   }
   
   
 /* ce__isword():  /* ce__isword():
  *      Return if p is part of a word according to emacs   *      Return if p is part of a word according to emacs
  */   */

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

CVSweb <webmaster@jp.NetBSD.org>