Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/cgram cgram: fix Home key for cursor navigation



details:   https://anonhg.NetBSD.org/src/rev/a22232a0ce4d
branches:  trunk
changeset: 952930:a22232a0ce4d
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Feb 21 13:35:37 2021 +0000

description:
cgram: fix Home key for cursor navigation

Reported by liweitianux via GitHub.

diffstat:

 games/cgram/cgram.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r f2f1e19098a5 -r a22232a0ce4d games/cgram/cgram.c
--- a/games/cgram/cgram.c       Sun Feb 21 13:27:22 2021 +0000
+++ b/games/cgram/cgram.c       Sun Feb 21 13:35:37 2021 +0000
@@ -241,7 +241,7 @@
       int ch = getch();
       switch (ch) {
        case 1: /* ^A */
-       case KEY_BEG:
+       case KEY_HOME:
        curx=0;
        break;
        case 2: /* ^B */



Home | Main Index | Thread Index | Old Index