Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r1cfcab7 r2cfc6d7  
    12641264void owl_function_full_redisplay(void)
    12651265{
    1266   redrawwin(owl_global_get_curs_recwin(&g));
    1267   redrawwin(owl_global_get_curs_sepwin(&g));
    1268   /* Work around curses segfualts with windows off the screen */
    1269   if (g.lines >= owl_global_get_typwin_lines(&g)+2)
    1270       redrawwin(owl_global_get_curs_typwin(&g));
    1271   if (g.lines >= 2)
    1272       redrawwin(owl_global_get_curs_msgwin(&g));
     1266  touchwin(owl_global_get_curs_recwin(&g));
     1267  touchwin(owl_global_get_curs_sepwin(&g));
     1268  touchwin(owl_global_get_curs_typwin(&g));
     1269  touchwin(owl_global_get_curs_msgwin(&g));
    12731270
    12741271  sepbar("");
     
    15751572{
    15761573  owl_global_set_typwin_lines(&g, newsize);
    1577   owl_function_resize();
     1574  owl_global_set_relayout_pending(&g);
    15781575}
    15791576
     
    19951992  newbuff = owl_sprintf("%s%s", buff, redirect);
    19961993
    1997   if (type == 1) {
     1994  if (type == OWL_OUTPUT_POPUP) {
    19981995    owl_popexec_new(newbuff);
    19991996  } else {
     
    20021999    pclose(p);
    20032000   
    2004     if (type==1) {
    2005       owl_function_popless_text(out);
    2006     } else if (type==0) {
     2001    if (type == OWL_OUTPUT_RETURN) {
    20072002      owl_free(newbuff);
    20082003      return out;
    2009     } else if (type==2) {
     2004    } else if (type == OWL_OUTPUT_ADMINMSG) {
    20102005      owl_function_adminmsg(buff, out);
    2011     } else {
    2012       owl_function_popless_text(out);
    20132006    }
    20142007    owl_free(out);
     
    20372030  perlout = owl_perlconfig_execute(buff);
    20382031  if (perlout) {
    2039     if (type==1) {
     2032    if (type == OWL_OUTPUT_POPUP) {
    20402033      owl_function_popless_text(perlout);
    2041     } else if (type==2) {
     2034    } else if (type == OWL_OUTPUT_ADMINMSG) {
    20422035      owl_function_adminmsg(buff, perlout);
    2043     } else if (type==0) {
     2036    } else if (type == OWL_OUTPUT_RETURN) {
    20442037      return perlout;
    2045     } else {
    2046       owl_function_popless_text(perlout);
    20472038    }
    20482039    owl_free(perlout);
     
    23342325  /* if it already exists then go with it.  This lets users override */
    23352326  if (owl_global_get_filter(&g, filtname)) {
    2336     return(filtname);
     2327    goto done;
    23372328  }
    23382329
     
    23642355
    23652356  owl_free(argbuff);
     2357done:
    23662358  owl_free(class);
    23672359  if (instance) {
     
    23922384  /* if it already exists then go with it.  This lets users override */
    23932385  if (owl_global_get_filter(&g, filtname)) {
    2394     return(owl_strdup(filtname));
     2386    return filtname;
    23952387  }
    23962388
Note: See TracChangeset for help on using the changeset viewer.