1 |
|
|
/* $OpenBSD: v_status.c,v 1.6 2014/11/12 04:28:41 bentley Exp $ */ |
2 |
|
|
|
3 |
|
|
/*- |
4 |
|
|
* Copyright (c) 1992, 1993, 1994 |
5 |
|
|
* The Regents of the University of California. All rights reserved. |
6 |
|
|
* Copyright (c) 1992, 1993, 1994, 1995, 1996 |
7 |
|
|
* Keith Bostic. All rights reserved. |
8 |
|
|
* |
9 |
|
|
* See the LICENSE file for redistribution information. |
10 |
|
|
*/ |
11 |
|
|
|
12 |
|
|
#include "config.h" |
13 |
|
|
|
14 |
|
|
#include <sys/types.h> |
15 |
|
|
#include <sys/queue.h> |
16 |
|
|
#include <sys/stat.h> |
17 |
|
|
#include <sys/time.h> |
18 |
|
|
|
19 |
|
|
#include <bitstring.h> |
20 |
|
|
#include <limits.h> |
21 |
|
|
#include <stdio.h> |
22 |
|
|
|
23 |
|
|
#include "../common/common.h" |
24 |
|
|
#include "vi.h" |
25 |
|
|
|
26 |
|
|
/* |
27 |
|
|
* v_status -- ^G |
28 |
|
|
* Show the file status. |
29 |
|
|
* |
30 |
|
|
* PUBLIC: int v_status(SCR *, VICMD *); |
31 |
|
|
*/ |
32 |
|
|
int |
33 |
|
|
v_status(SCR *sp, VICMD *vp) |
34 |
|
|
{ |
35 |
|
|
(void)msgq_status(sp, vp->m_start.lno, MSTAT_SHOWLAST); |
36 |
|
|
return (0); |
37 |
|
|
} |