Let the Insert key toggle overwrite mode. This matches GNU Emacs behavior.
authorbcallah <bcallah@openbsd.org>
Sun, 17 Dec 2017 14:37:57 +0000 (14:37 +0000)
committerbcallah <bcallah@openbsd.org>
Sun, 17 Dec 2017 14:37:57 +0000 (14:37 +0000)
Diff from Lari Rasku <lari.rasku AT elisanet DOT fi>
ok florian@

usr.bin/mg/ttykbd.c

index 67bc8e4..e18a0d6 100644 (file)
@@ -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);