diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2012-10-12 21:13:48 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2012-10-12 21:13:48 +0000 |
commit | b187a17b6078410440d7f9e68f33e83d49ddaf04 (patch) | |
tree | 6c1c5e5c896c5035a853f3d344317719249886ee /usr.bin/mg/funmap.c | |
parent | d59ccec1388501741b3a248667436651ef24985a (diff) |
- implement "revert-buffer", which reverts the current buffer to what's on disk
- split gotoline() into the argument handling part and the part that actually
goes to the specified line number so it can be re-used by revertbuffer()
input/ok florian@ haesbaert@
Diffstat (limited to 'usr.bin/mg/funmap.c')
-rw-r--r-- | usr.bin/mg/funmap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mg/funmap.c b/usr.bin/mg/funmap.c index aac58ce53e3..66dd4147f69 100644 --- a/usr.bin/mg/funmap.c +++ b/usr.bin/mg/funmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: funmap.c,v 1.40 2012/06/14 17:21:22 lum Exp $ */ +/* $OpenBSD: funmap.c,v 1.41 2012/10/12 21:13:46 jasper Exp $ */ /* This file is in the public domain */ @@ -196,7 +196,8 @@ static struct funmap functnames[] = { {csprevmatch, "cscope-prev-symbol",}, {csnextfile, "cscope-next-file",}, {csprevfile, "cscope-prev-file",}, - {cscreatelist, "cscope-create-list-of-files-to-index"}, + {cscreatelist, "cscope-create-list-of-files-to-index",}, + {revertbuffer, "revert-buffer",}, {NULL, NULL,} }; |