Changeset 4cca591


Ignore:
Timestamp:
Mar 11, 2010, 9:36:40 PM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
8830df47
Parents:
2ee9e8d
git-author:
David Benjamin <davidben@mit.edu> (03/09/10 16:47:48)
git-committer:
David Benjamin <davidben@mit.edu> (03/11/10 21:36:40)
Message:
Drop doupdate call in owl_viewwin_redisplay

Instead, set refresh flag and let the main loop take care of it.
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r2ee9e8d r4cca591  
    12851285                        text);
    12861286  owl_popwin_refresh(pw);
    1287   owl_viewwin_redisplay(v, 0);
     1287  owl_viewwin_redisplay(v);
    12881288  owl_global_set_needrefresh(&g);
    12891289}
     
    13031303                   fm);
    13041304  owl_popwin_refresh(pw);
    1305   owl_viewwin_redisplay(v, 0);
     1305  owl_viewwin_redisplay(v);
    13061306  owl_global_set_needrefresh(&g);
    13071307}
  • keys.c

    r2a17b63 r4cca591  
    345345  if (pw && owl_popwin_is_active(pw) && v) {
    346346    owl_popwin_refresh(pw);
    347     owl_viewwin_redisplay(v, 1);
     347    owl_viewwin_redisplay(v);
     348    owl_global_set_needrefresh(&g);
    348349  } 
    349350}
  • popexec.c

    rb928b3a r4cca591  
    3131                        owl_popwin_get_lines(pw), owl_popwin_get_cols(pw),
    3232                        "");
    33   owl_viewwin_redisplay(v, 0);
     33  owl_viewwin_redisplay(v);
    3434  owl_global_set_needrefresh(&g);
    3535  owl_viewwin_set_onclose_hook(v, owl_popexec_viewwin_onclose, pe);
     
    110110    if (pe->winactive) {
    111111      owl_viewwin_append_text(pe->vwin, "\n");
    112       owl_viewwin_redisplay(pe->vwin, 1);
     112      owl_viewwin_redisplay(pe->vwin);
     113      owl_global_set_needrefresh(&g);
    113114    }
    114115    owl_select_remove_io_dispatch(d);
     
    136137  if (pe->winactive) {
    137138    owl_viewwin_append_text(pe->vwin, buf);
    138     owl_viewwin_redisplay(pe->vwin, 1);
     139    owl_viewwin_redisplay(pe->vwin);
     140    owl_global_set_needrefresh(&g);
    139141  }
    140142  owl_free(buf);
  • viewwin.c

    r963b471 r4cca591  
    6464
    6565/* regenerate text on the curses window. */
    66 /* if update == 1 then do a doupdate() */
    67 void owl_viewwin_redisplay(owl_viewwin *v, int update)
     66void owl_viewwin_redisplay(owl_viewwin *v)
    6867{
    6968  owl_fmtext fm1, fm2;
     
    9089  wattroff(v->curswin, A_REVERSE);
    9190  update_panels();
    92 
    93   if (update==1) {
    94     doupdate();
    95   }
    9691
    9792  owl_fmtext_cleanup(&fm1);
Note: See TracChangeset for help on using the changeset viewer.