Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • editwin.c

    r2184001 r6c171f1  
    326326static void oe_release_excursion(owl_editwin *e, oe_excursion *x)
    327327{
    328   oe_excursion *p;
     328  oe_excursion **px;
    329329
    330330  x->valid = 0;
    331   if (e->excursions == NULL)
    332     /* XXX huh. */ ;
    333   else if (e->excursions == x)
    334     e->excursions = x->next;
    335   else {
    336     for (p = e->excursions; p->next != NULL; p = p->next)
    337       if (p->next == x) {
    338         p->next = p->next->next;
    339         break;
    340       }
    341     /* and if we ran off the end? XXX */
    342   }
     331  for (px = &e->excursions; *px != NULL; px = &(*px)->next)
     332    if (*px == x) {
     333      *px = x->next;
     334      return;
     335    }
     336  abort();
    343337}
    344338
     
    12581252
    12591253  if (!g_unichar_iscntrl(c) || c == '\n' || c== '\t' ) {
    1260     memset(tmp, 0, 7);
    1261 
    12621254    if (c == '\n' && e->style == OWL_EDITWIN_STYLE_ONELINE) {
    12631255      return;
     
    13021294      return; /* our work here is done */
    13031295
    1304     g_unichar_to_utf8(c, tmp);
     1296    tmp[g_unichar_to_utf8(c, tmp)] = '\0';
    13051297    owl_editwin_replace(e, 0, tmp);
    13061298  }
Note: See TracChangeset for help on using the changeset viewer.