]> git.wh0rd.org Git - nano.git/commitdiff
Delete two unneeded #ifdefs -- better fail to compile than create a cripple.
authorBenno Schulenberg <bensberg@justemail.net>
Thu, 7 Jan 2016 15:21:59 +0000 (15:21 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Thu, 7 Jan 2016 15:21:59 +0000 (15:21 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5536 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/global.c

index bd605b5405bc5074e2c3abf3d656e5fc4f585089..3cc6a3aaa00e1a652b339c87c0cc3ab6032fd2a9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
        * src/global.c (shortcut_init): Nowadays the functions are defined
        only once, so there is no longer any need to free existing ones.
index 3e0230393b4d798dadec3bb8ba15a5005f557c92..cd1dccf036b7a602f20c2b8fc3aea0e30de9d763 100644 (file)
@@ -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
     }
 }