]> git.cameronkatri.com Git - bsdgames-darwin.git/commitdiff
cgram: fix Home key for cursor navigation
authorrillig <rillig@NetBSD.org>
Sun, 21 Feb 2021 13:35:37 +0000 (13:35 +0000)
committerCameron Katri <me@cameronkatri.com>
Tue, 13 Apr 2021 19:28:31 +0000 (15:28 -0400)
Reported by liweitianux via GitHub.

cgram/cgram.c

index 5e5dd556b037ae2c7e8db7c729a7499b20edde7e..62662cefeddb2c1e0f3382e2761cec27afbd2f84 100644 (file)
@@ -241,7 +241,7 @@ static void loop(void) {
       int ch = getch();
       switch (ch) {
        case 1: /* ^A */
-       case KEY_BEG:
+       case KEY_HOME:
        curx=0;
        break;
        case 2: /* ^B */