Changeset 217a43e for commands.c


Ignore:
Timestamp:
Jul 3, 2002, 6:28:46 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:
8df36cc
Parents:
83a9b63
Message:
	Fixed a bug in the "reply -e" command.
	The "disable-ctrl-d" variable may also be set to "middle"
	        which will result in ctrl-d only sending at the
		end of the message.  This is now the default.
		This also added a command "editmulti:done-or-delete".
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r1c6c4d3 r217a43e  
    622622                  "", ""),
    623623
     624  OWLCMD_VOID_CTX("editmulti:done-or-delete", owl_command_editmulti_done_or_delete,
     625                  OWL_CTX_EDITMULTI,
     626                  "completes the command, but only if at end of message",
     627                  "",
     628                  "If only whitespace is to the right of the cursor,\n"
     629                  "runs 'editmulti:done'.\n"\
     630                  "Otherwise runs 'edit:delete-next-char'\n"),
     631
    624632  /****************************************************************/
    625633  /********************** POPLESS-SPECIFIC ************************/
     
    11461154    edit=1;
    11471155    argv++;
     1156    argc--;
    11481157  }
    11491158
     
    15531562}
    15541563
     1564void owl_command_editmulti_done_or_delete(owl_editwin *e) {
     1565  if (owl_editwin_is_at_end(e)) {
     1566    owl_command_editmulti_done(e);
     1567  } else {
     1568    owl_editwin_delete_char(e);
     1569  }
     1570}
     1571
    15551572
    15561573/*********************************************************************/
Note: See TracChangeset for help on using the changeset viewer.