xref: /freebsd/contrib/nvi/vi/v_redraw.c (revision 2e3f49888ec8851bafb22011533217487764fdb0)
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.
6  *
7  * See the LICENSE file for redistribution information.
8  */
9 
10 #include "config.h"
11 
12 #include <sys/types.h>
13 #include <sys/queue.h>
14 #include <sys/time.h>
15 
16 #include <bitstring.h>
17 #include <limits.h>
18 #include <stdio.h>
19 
20 #include "../common/common.h"
21 #include "vi.h"
22 
23 /*
24  * v_redraw -- ^L, ^R
25  *	Redraw the screen.
26  *
27  * PUBLIC: int v_redraw(SCR *, VICMD *);
28  */
29 int
30 v_redraw(SCR *sp, VICMD *vp)
31 {
32 	F_SET(sp, SC_SCR_REFORMAT);
33 	return (sp->gp->scr_refresh(sp, 1));
34 }
35