summaryrefslogtreecommitdiff
path: root/usr.bin/mg/basic.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-02-08 21:21:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-02-08 21:21:12 +0000
commitde9c8f8d7ba280b4756634e8d62a4926ee65e65e (patch)
tree2dd7f7b2a88dbec8c022b206270dbc997170959c /usr.bin/mg/basic.c
parent6ebcea0ac9bbf23671f97962d57dea68bd9edf58 (diff)
more gosmacs
Diffstat (limited to 'usr.bin/mg/basic.c')
-rw-r--r--usr.bin/mg/basic.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/mg/basic.c b/usr.bin/mg/basic.c
index 9712838e5aa..dc2926126e4 100644
--- a/usr.bin/mg/basic.c
+++ b/usr.bin/mg/basic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: basic.c,v 1.6 2001/05/23 22:20:34 art Exp $ */
+/* $OpenBSD: basic.c,v 1.7 2002/02/08 21:21:11 deraadt Exp $ */
/*
* Basic cursor motion commands.
@@ -341,8 +341,7 @@ backpage(f, n)
* These functions are provided for compatibility with Gosling's Emacs. They
* are used to scroll the display up (or down) one line at a time.
*/
-#ifdef GOSMACS
-void
+int
forw1page(f, n)
int f, n;
{
@@ -352,9 +351,10 @@ forw1page(f, n)
f = FFUNIV;
}
forwpage(f | FFRAND, n);
+ return TRUE;
}
-void
+int
back1page(f, n)
int f, n;
{
@@ -364,8 +364,8 @@ back1page(f, n)
f = FFUNIV;
}
backpage(f | FFRAND, n);
+ return TRUE;
}
-#endif
/*
* Page the other window. Check to make sure it exists, then