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>
This commit is contained in:
parent
c70e6919c2
commit
a98f82e27b
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user