Source-Changes-HG archive

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

[src/trunk]: src/games/cgram cgram: allow cursor navigation with KEY_BEG as well



details:   https://anonhg.NetBSD.org/src/rev/2524f237fa58
branches:  trunk
changeset: 366757:2524f237fa58
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Jun 12 14:59:44 2022 +0000

description:
cgram: allow cursor navigation with KEY_BEG as well

diffstat:

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

diffs (26 lines):

diff -r 8834f04a5733 -r 2524f237fa58 games/cgram/cgram.c
--- a/games/cgram/cgram.c       Sun Jun 12 14:27:06 2022 +0000
+++ b/games/cgram/cgram.c       Sun Jun 12 14:59:44 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgram.c,v 1.28 2022/05/14 14:20:10 rillig Exp $ */
+/* $NetBSD: cgram.c,v 1.29 2022/06/12 14:59:44 rillig Exp $ */
 
 /*-
  * Copyright (c) 2013, 2021 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: cgram.c,v 1.28 2022/05/14 14:20:10 rillig Exp $");
+__RCSID("$NetBSD: cgram.c,v 1.29 2022/06/12 14:59:44 rillig Exp $");
 #endif
 
 #include <assert.h>
@@ -490,6 +490,7 @@
 
        switch (ch) {
        case 1:                 /* ^A */
+       case KEY_BEG:
        case KEY_HOME:
                cursor_x = 0;
                break;



Home | Main Index | Thread Index | Old Index