Changeset b68f9cd for editwin.c


Ignore:
Timestamp:
Jun 30, 2002, 1:41:05 PM (18 years ago)
Author:
Erik Nygren <nygren@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
262422c
Parents:
e75011e
Message:
	Added "edit:delete-prev-word" command and bound M-BACKSPACE to it.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • editwin.c

    rd36f2cb rb68f9cd  
    614614}
    615615
     616void owl_editwin_delete_previousword(owl_editwin *e) {
     617  /* go backwards to the last non-space character, then delete chars */
     618  int i, startpos, endpos;
     619
     620  startpos = _owl_editwin_get_index_from_xy(e);
     621  owl_editwin_move_to_previousword(e);
     622  endpos = _owl_editwin_get_index_from_xy(e);
     623  for (i=0; i<startpos-endpos; i++) {
     624    owl_editwin_delete_char(e);
     625  }
     626}
     627
    616628void owl_editwin_delete_to_endofline(owl_editwin *e) {
    617629  int i;
Note: See TracChangeset for help on using the changeset viewer.