From: bcallah Date: Sun, 17 Dec 2017 14:37:57 +0000 (+0000) Subject: Let the Insert key toggle overwrite mode. This matches GNU Emacs behavior. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f19856a504837f38c25e9fc6704f151d8593f428;p=openbsd Let the Insert key toggle overwrite mode. This matches GNU Emacs behavior. Diff from Lari Rasku ok florian@ --- 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);