]> git.lizzy.rs Git - micro.git/commitdiff
Fix backspace on Windows
authorZachary Yedidia <zyedidia@gmail.com>
Sat, 20 Jun 2020 17:22:01 +0000 (13:22 -0400)
committerZachary Yedidia <zyedidia@gmail.com>
Sat, 20 Jun 2020 17:22:01 +0000 (13:22 -0400)
Fixes #1735

internal/action/bindings.go

index fd57eb9c70968bed99b35231d1e2808295651487..c1999305b32afdc6c25ecc5799e59bd7a3aa5265 100644 (file)
@@ -82,7 +82,7 @@ modSearch:
                case strings.HasPrefix(k, "-"):
                        // We optionally support dashes between modifiers
                        k = k[1:]
-               case strings.HasPrefix(k, "Ctrl") && k != "CtrlH":
+               case strings.HasPrefix(k, "Ctrl") && k != "Ctrl-h" && k != "CtrlH" && k != "Ctrlh":
                        // CtrlH technically does not have a 'Ctrl' modifier because it is really backspace
                        k = k[4:]
                        modifiers |= tcell.ModCtrl