Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Drop calls to update_panels outside main loop

One call is sufficient. Also, it doesn't do anything without a doupdate
anyway.
  • Loading branch information...
commit f449096479541df1434d1d796890d0bd2939f072 1 parent 03c5bdd
@davidben davidben authored
View
4 commands.c
@@ -2661,7 +2661,6 @@ void owl_command_edit_cancel(owl_editwin *e)
owl_editwin_fullclear(e);
owl_global_set_needrefresh(&g);
- update_panels();
owl_global_set_typwin_inactive(&g);
owl_editwin_new_style(e, OWL_EDITWIN_STYLE_ONELINE, NULL);
@@ -2729,7 +2728,6 @@ void owl_command_editline_done(owl_editwin *e)
rv = owl_function_command(cmd);
owl_free(cmd);
- update_panels();
owl_global_set_needrefresh(&g);
if (rv) {
@@ -2746,7 +2744,6 @@ void owl_command_editresponse_done(owl_editwin *e)
owl_global_set_typwin_inactive(&g);
owl_global_pop_context(&g);
owl_editwin_fullclear(e);
- update_panels();
owl_global_set_needrefresh(&g);
}
@@ -2764,7 +2761,6 @@ void owl_command_edit_done(owl_editwin *e)
owl_global_set_typwin_inactive(&g);
owl_global_pop_context(&g);
owl_global_set_needrefresh(&g);
- update_panels();
}
void owl_command_edit_done_or_delete(owl_editwin *e)
View
2  editwin.c
@@ -564,8 +564,6 @@ void owl_editwin_redisplay(owl_editwin *e)
wmove(e->curswin, y, x);
e->cursorx = x;
-
- update_panels();
}
static inline void oe_fixup(int *target, int start, int end, int change) {
View
4 functions.c
@@ -214,7 +214,6 @@ void owl_function_adminmsg(const char *header, const char *body)
/* redisplay etc. */
owl_mainwin_redisplay(owl_global_get_mainwin(&g));
- update_panels();
owl_global_set_needrefresh(&g);
}
@@ -1262,8 +1261,6 @@ void owl_function_full_redisplay(void)
if (g.lines >= 2)
redrawwin(owl_global_get_curs_msgwin(&g));
- update_panels();
-
sepbar("");
owl_function_makemsg("");
@@ -3390,7 +3387,6 @@ void owl_function_makemsg(const char *fmt, ...)
vsnprintf(buff, 2048, fmt, ap);
owl_function_debugmsg("makemsg: %s", buff);
waddstr(owl_global_get_curs_msgwin(&g), buff);
- update_panels();
owl_global_set_needrefresh(&g);
va_end(ap);
}
View
2  mainwin.c
@@ -42,7 +42,6 @@ void owl_mainwin_redisplay(owl_mainwin *mw)
}
mw->curtruncated=0;
mw->lastdisplayed=-1;
- update_panels();
owl_global_set_needrefresh(&g);
return;
}
@@ -140,7 +139,6 @@ void owl_mainwin_redisplay(owl_mainwin *mw)
}
mw->lastdisplayed=i-1;
- update_panels();
owl_global_set_needrefresh(&g);
}
View
2  owl.c
@@ -624,7 +624,7 @@ int main(int argc, char **argv, char **env)
/* update the terminal if we need to */
if (owl_global_is_needrefresh(&g)) {
- /* ensure that panels are clean, so that set_cursor doesn't break things */
+ /* push all changed windows to screen */
update_panels();
/* leave the cursor in the appropriate window */
if (!owl_popwin_is_active(owl_global_get_popwin(&g))
View
1  popwin.c
@@ -48,7 +48,6 @@ int owl_popwin_up(owl_popwin *pw)
waddch(borderwin, '+');
}
- update_panels();
owl_global_set_needrefresh(&g);
pw->active=1;
return(0);
View
1  util.c
@@ -119,7 +119,6 @@ void sepbar(const char *in)
wattroff(sepwin, A_BOLD);
wattroff(sepwin, A_REVERSE);
- update_panels();
}
char **atokenize(const char *buffer, const char *sep, int *i)
View
1  viewwin.c
@@ -87,7 +87,6 @@ void owl_viewwin_redisplay(owl_viewwin *v)
waddstr(v->curswin, "--End-- (Press 'q' to quit)");
}
wattroff(v->curswin, A_REVERSE);
- update_panels();
owl_fmtext_cleanup(&fm1);
owl_fmtext_cleanup(&fm2);
Please sign in to comment.
Something went wrong with that request. Please try again.