From 6d6cda24c886b729f9ef09a928a09aada589e2e0 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Thu, 7 Jan 2016 15:21:59 +0000 Subject: [PATCH] Delete two unneeded #ifdefs -- better fail to compile than create a cripple. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5536 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 4 ++++ src/global.c | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index bd605b54..3cc6a3aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2016-01-07 Benno Schulenberg + * src/global.c (assign_keyinfo): Delete two unneeded #ifdefs: if + they /could/ be false, the H and E keys would stop working. + 2016-01-04 Benno Schulenberg * src/global.c (shortcut_init): Nowadays the functions are defined only once, so there is no longer any need to free existing ones. diff --git a/src/global.c b/src/global.c index 3e023039..cd1dccf0 100644 --- a/src/global.c +++ b/src/global.c @@ -449,14 +449,10 @@ void assign_keyinfo(sc *s) s->seq = KEY_PPAGE; else if (!strcasecmp(s->keystr, "PgDn")) s->seq = KEY_NPAGE; -#ifdef KEY_HOME else if (!strcasecmp(s->keystr, "Home")) s->seq = KEY_HOME; -#endif -#ifdef KEY_END else if (!strcasecmp(s->keystr, "End")) s->seq = KEY_END; -#endif } } -- 2.39.5