From 2e83a50e952da5c0bea15514a48ce841fb58e911 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Mon, 1 Nov 2004 22:35:26 +0000 Subject: [PATCH] properly handle the case of a function key with no preceding control key in the help browser git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2040 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/nano.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/nano.c b/src/nano.c index da9c192d..50d0bf19 100644 --- a/src/nano.c +++ b/src/nano.c @@ -442,6 +442,11 @@ void help_init(void) /* Function key. */ if (s->funcval != NANO_NO_KEY) { entries++; + /* If this is the first entry, put it in the middle. */ + if (entries == 1) { + entries++; + *(ptr++) = '\t'; + } ptr += sprintf(ptr, "(F%d)", s->funcval - KEY_F0); *(ptr++) = '\t'; } -- 2.39.5