summaryrefslogtreecommitdiff
path: root/usr.bin/mg/ttykbd.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-03-12 00:42:17 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-03-12 00:42:17 +0000
commit7beb61bd127e8c198ff723c60fe2e0858a556d97 (patch)
tree8f98db801a08d70e9ac97dd7be0f84ea58326317 /usr.bin/mg/ttykbd.c
parent80e5779001a9337a84f29f2a1e46f0022fb98026 (diff)
If no 'begin' key on keypad, use 'home' instead since PC keyboards
have 'home', not 'begin'.
Diffstat (limited to 'usr.bin/mg/ttykbd.c')
-rw-r--r--usr.bin/mg/ttykbd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/mg/ttykbd.c b/usr.bin/mg/ttykbd.c
index 52febf6df78..f4a16799a34 100644
--- a/usr.bin/mg/ttykbd.c
+++ b/usr.bin/mg/ttykbd.c
@@ -43,6 +43,8 @@ ttykeymapinit()
dobindkey(map_table[0].p_map, "next-line", key_down);
if (key_beg)
dobindkey(map_table[0].p_map, "beginning-of-line", key_beg);
+ else if (key_home)
+ dobindkey(map_table[0].p_map, "beginning-of-line", key_home);
if (key_end)
dobindkey(map_table[0].p_map, "end-of-line", key_end);
if (key_npage)