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
This commit is contained in:
Benno Schulenberg 2016-01-07 15:21:59 +00:00
parent 9962e3b65c
commit 6d6cda24c8
2 changed files with 4 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2016-01-07 Benno Schulenberg <bensberg@justemail.net>
* 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 <bensberg@justemail.net> 2016-01-04 Benno Schulenberg <bensberg@justemail.net>
* src/global.c (shortcut_init): Nowadays the functions are defined * src/global.c (shortcut_init): Nowadays the functions are defined
only once, so there is no longer any need to free existing ones. only once, so there is no longer any need to free existing ones.

View File

@ -449,14 +449,10 @@ void assign_keyinfo(sc *s)
s->seq = KEY_PPAGE; s->seq = KEY_PPAGE;
else if (!strcasecmp(s->keystr, "PgDn")) else if (!strcasecmp(s->keystr, "PgDn"))
s->seq = KEY_NPAGE; s->seq = KEY_NPAGE;
#ifdef KEY_HOME
else if (!strcasecmp(s->keystr, "Home")) else if (!strcasecmp(s->keystr, "Home"))
s->seq = KEY_HOME; s->seq = KEY_HOME;
#endif
#ifdef KEY_END
else if (!strcasecmp(s->keystr, "End")) else if (!strcasecmp(s->keystr, "End"))
s->seq = KEY_END; s->seq = KEY_END;
#endif
} }
} }