xref: /freebsd/contrib/nvi/vi/v_status.c (revision 1603881667360c015f6685131f2f25474fa67a72)
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/stat.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_status -- ^G
25  *	Show the file status.
26  *
27  * PUBLIC: int v_status(SCR *, VICMD *);
28  */
29 int
30 v_status(SCR *sp, VICMD *vp)
31 {
32 	(void)msgq_status(sp, vp->m_start.lno, MSTAT_SHOWLAST);
33 	return (0);
34 }
35