diff options
author | Brian Callahan <bcallah@cvs.openbsd.org> | 2017-12-17 14:37:58 +0000 |
---|---|---|
committer | Brian Callahan <bcallah@cvs.openbsd.org> | 2017-12-17 14:37:58 +0000 |
commit | 6fe163ec4aac1fe61b301765a40a26ed90226358 (patch) | |
tree | 5cd84fc4b4ad24e480aab4865a47110395d9ad0d /usr.bin | |
parent | 9b6dfe24b3e7e452d3fbf69b83ff514b8f6a7187 (diff) |
Let the Insert key toggle overwrite mode. This matches GNU Emacs behavior.
Diff from Lari Rasku <lari.rasku AT elisanet DOT fi>
ok florian@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mg/ttykbd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/mg/ttykbd.c b/usr.bin/mg/ttykbd.c index 67bc8e4bdd9..e18a0d69ee4 100644 --- a/usr.bin/mg/ttykbd.c +++ b/usr.bin/mg/ttykbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ttykbd.c,v 1.18 2015/03/19 21:22:15 bcallah Exp $ */ +/* $OpenBSD: ttykbd.c,v 1.19 2017/12/17 14:37:57 bcallah Exp $ */ /* This file is in the public domain. */ @@ -52,6 +52,8 @@ ttykeymapinit(void) dobindkey(fundamental_map, "scroll-up", key_npage); if (key_ppage) dobindkey(fundamental_map, "scroll-down", key_ppage); + if (key_ic) + dobindkey(fundamental_map, "overwrite-mode", key_ic); if (key_dc) dobindkey(fundamental_map, "delete-char", key_dc); |