aboutsummaryrefslogtreecommitdiff
path: root/contrib/ncurses/panel/p_replace.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ncurses/panel/p_replace.c')
-rw-r--r--contrib/ncurses/panel/p_replace.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/ncurses/panel/p_replace.c b/contrib/ncurses/panel/p_replace.c
index 3c4aca185d4f..b7d51746610f 100644
--- a/contrib/ncurses/panel/p_replace.c
+++ b/contrib/ncurses/panel/p_replace.c
@@ -36,15 +36,18 @@
*/
#include "panel.priv.h"
-MODULE_ID("$Id: p_replace.c,v 1.3 1999/09/29 15:22:32 juergen Exp $")
+MODULE_ID("$Id: p_replace.c,v 1.5 1999/11/25 13:49:26 juergen Exp $")
int
replace_panel(PANEL *pan, WINDOW *win)
{
if(!pan)
return(ERR);
- if(_nc_panel_is_linked(pan))
- PANEL_UPDATE(pan,(PANEL*)0);
+
+ if (IS_LINKED(pan))
+ PANEL_UPDATE(pan,(PANEL*)0, TRUE);
+
pan->win = win;
+
return(OK);
}