summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)