summaryrefslogtreecommitdiff
path: root/usr.bin/mg/help.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-05-23 21:01:17 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-05-23 21:01:17 +0000
commit31c593266c17de0d805014ad463bfee2d43cd5cb (patch)
tree623edaf0bb2d723780f2646f4f99adfbb546a521 /usr.bin/mg/help.c
parent24c3043a7ea18dbe7707f89674db574645c6b231 (diff)
When a key is bound to selfinsert, it shouldn't be considered to be bound
to anything.
Diffstat (limited to 'usr.bin/mg/help.c')
-rw-r--r--usr.bin/mg/help.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/help.c b/usr.bin/mg/help.c
index 3062a2c01ee..1f587a48fc5 100644
--- a/usr.bin/mg/help.c
+++ b/usr.bin/mg/help.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: help.c,v 1.6 2001/05/23 20:19:44 art Exp $ */
+/* $OpenBSD: help.c,v 1.7 2001/05/23 21:01:16 art Exp $ */
/*
* Help functions for Mg 2
@@ -87,7 +87,7 @@ nextmode:
*pep = '\0';
}
found:
- if (funct == rescan)
+ if (funct == rescan || funct == selfinsert)
ewprintf("%k is not bound to any function");
else if ((pep = function_name(funct)) != NULL)
ewprintf("%k runs the command %s", pep);