Changeset 4c46dfd for editwin.c


Ignore:
Timestamp:
Oct 26, 2006, 5:45:10 PM (14 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
39c036d
Parents:
6922edd
Message:
Fixing a hang I've seen repeatedly in owl
File:
1 edited

Legend:

Unmodified
Added
Removed
  • editwin.c

    r12c35df r4c46dfd  
    711711  while (1) {
    712712    z=_owl_editwin_get_index_from_xy(e);
    713     if (e->buff[z+1]==' ' || e->buff[z+1]=='\n' || e->buff[z+1]=='\0') break;
     713    /* z == e->bufflen check added to prevent a hang I (nelhage) have
     714       seen repeatedly while using owl. I'm not sure precisely what
     715       conditions lead to it. */
     716    if (z == e->bufflen
     717        || e->buff[z+1]==' ' || e->buff[z+1]=='\n' || e->buff[z+1]=='\0') break;
    714718    owl_editwin_delete_char(e);
    715719  }
Note: See TracChangeset for help on using the changeset viewer.