only clean out gs when last window goes
[nvi.git] / vi / v_redraw.c
blobe0c772847e896497ce3fe9a558349c29c110a9f3
1 /*-
2 * Copyright (c) 1992, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 1992, 1993, 1994, 1995, 1996
5 * Keith Bostic. All rights reserved.
7 * See the LICENSE file for redistribution information.
8 */
10 #include "config.h"
12 #ifndef lint
13 static const char sccsid[] = "$Id: v_redraw.c,v 10.6 1996/03/06 19:54:30 bostic Exp $ (Berkeley) $Date: 1996/03/06 19:54:30 $";
14 #endif /* not lint */
16 #include <sys/types.h>
17 #include <sys/queue.h>
18 #include <sys/time.h>
20 #include <bitstring.h>
21 #include <limits.h>
22 #include <stdio.h>
24 #include "../common/common.h"
25 #include "vi.h"
28 * v_redraw -- ^L, ^R
29 * Redraw the screen.
31 * PUBLIC: int v_redraw __P((SCR *, VICMD *));
33 int
34 v_redraw(sp, vp)
35 SCR *sp;
36 VICMD *vp;
38 return (sp->gp->scr_refresh(sp, 1));