nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 9b8930cc137a0096adfc1a2063b1c0f5d90ce065
parent 0f0b620c651ea58f2f0c7cd7a0dd8424ffeab4ad
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 22 Jun 2020 09:09:05 +0200

tweaks: adjust the conditional help-item pairing for absence of speller

The Spell Checker is no longer among the first twelve items of the
main menu, so the conditional placing of the Go To Line item should
no longer depend on it.

Diffstat:
Msrc/global.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/global.c b/src/global.c @@ -808,8 +808,7 @@ void shortcut_init(void) add_to_funcs(do_cursorpos_void, MMAIN, N_("Location"), WITHORSANS(cursorpos_gist), TOGETHER, VIEW); -#if ((defined(ENABLE_JUSTIFY) && defined(ENABLE_SPELLER)) || \ - (!defined(ENABLE_JUSTIFY) && !defined(ENABLE_SPELLER))) +#ifdef ENABLE_JUSTIFY /* Conditionally placing this one here or further on, to keep the * help items nicely paired in most conditions. */ add_to_funcs(do_gotolinecolumn_void, MMAIN, @@ -955,8 +954,7 @@ void shortcut_init(void) N_("Next File"), WITHORSANS(nextfile_gist), BLANKAFTER, VIEW); #endif -#if ((!defined(ENABLE_JUSTIFY) && defined(ENABLE_SPELLER)) || \ - (defined(ENABLE_JUSTIFY) && !defined(ENABLE_SPELLER))) +#ifndef ENABLE_JUSTIFY add_to_funcs(do_gotolinecolumn_void, MMAIN, N_("Go To Line"), WITHORSANS(gotoline_gist), BLANKAFTER, VIEW); #endif