Changeset 217a43e for editwin.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
  • editwin.c

    rb68f9cd r217a43e  
    740740}
    741741
     742/* returns if only whitespace remains */
     743int owl_editwin_is_at_end(owl_editwin *e) {
     744  int i, cur; 
     745  cur=_owl_editwin_get_index_from_xy(e);
     746  if (cur >= e->bufflen) return(1);
     747  for (i=e->bufflen-1; i>cur; i--) {
     748    if (e->buff[i] != '\r'
     749        && e->buff[i] != '\n'
     750        && e->buff[i] != ' ') {
     751      return(0);
     752    }
     753  }
     754  if (cur==i) return(1);
     755  else return(0);
     756}
     757
    742758int owl_editwin_check_dotsend(owl_editwin *e) {
    743759  int i;
Note: See TracChangeset for help on using the changeset viewer.