commit a98f82e27bfa504bce5123286d549f863c7210e5
parent c70e6919c20323d973a8a4a4b75d8ce0ad2726e9
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Tue, 4 Jun 2024 11:30:51 +0200
startup: no not activate --modernbindings when name starts with "e"
Activating --modernbindings when the binary's name starts with "e"
interferes with Debian's alternatives system that symlinks `editor`
to `nano` in a default install.
(Also: why "e"? It would have made more sense to check for "m",
similar to the checking for "r" for a restricted nano.)
This reverts commit 580eaf29 from fifteen months ago.
This addresses https://savannah.gnu.org/bugs/?65810.
Reported-by: Colin Snover <nano@zetafleet.com>
Diffstat:
1 file changed, 0 insertions(+), 2 deletions(-)
diff --git a/src/nano.c b/src/nano.c
@@ -1874,8 +1874,6 @@ int main(int argc, char **argv)
/* If the executable's name starts with 'r', activate restricted mode. */
if (*(tail(argv[0])) == 'r')
SET(RESTRICTED);
- else if (*(tail(argv[0])) == 'e')
- SET(MODERN_BINDINGS);
while ((optchr = getopt_long(argc, argv, "ABC:DEFGHIJ:KLMNOPQ:RST:UVWX:Y:Z"
"abcdef:ghijklmno:pqr:s:tuvwxyz!@%_0/", long_options, NULL)) > 0) {