mirror of git://git.sv.gnu.org/nano.git
tweaks: put the new options in a consistent order in the code
This commit is contained in:
parent
7b9567719c
commit
e66c7d0f8d
16
src/nano.c
16
src/nano.c
|
@ -1749,7 +1749,6 @@ int main(int argc, char **argv)
|
|||
{"wordbounds", 0, NULL, 'W'},
|
||||
{"wordchars", 1, NULL, 'X'},
|
||||
{"zap", 0, NULL, 'Z'},
|
||||
{"minibar", 0, NULL, '_'},
|
||||
{"atblanks", 0, NULL, 'a'},
|
||||
{"emptyline", 0, NULL, 'e'},
|
||||
{"autoindent", 0, NULL, 'i'},
|
||||
|
@ -1759,8 +1758,9 @@ int main(int argc, char **argv)
|
|||
{"indicator", 0, NULL, 'q'},
|
||||
{"unix", 0, NULL, 'u'},
|
||||
{"afterends", 0, NULL, 'y'},
|
||||
{"stateflags", 0, NULL, '%'},
|
||||
{"markmatch", 0, NULL, '^'},
|
||||
{"stateflags", 0, NULL, '%'},
|
||||
{"minibar", 0, NULL, '_'},
|
||||
#endif
|
||||
#ifdef HAVE_LIBMAGIC
|
||||
{"magic", 0, NULL, '!'},
|
||||
|
@ -1815,7 +1815,7 @@ int main(int argc, char **argv)
|
|||
SET(RESTRICTED);
|
||||
|
||||
while ((optchr = getopt_long(argc, argv, "ABC:DEFGHIJ:KLMNOPQ:RST:UVWX:Y:Z"
|
||||
"abcdef:ghijklmno:pqr:s:tuvwxyz$%^_!", long_options, NULL)) != -1) {
|
||||
"abcdef:ghijklmno:pqr:s:tuvwxyz$^%_!", long_options, NULL)) != -1) {
|
||||
switch (optchr) {
|
||||
#ifndef NANO_TINY
|
||||
case 'A':
|
||||
|
@ -1935,9 +1935,6 @@ int main(int argc, char **argv)
|
|||
case 'Z':
|
||||
SET(LET_THEM_ZAP);
|
||||
break;
|
||||
case '_':
|
||||
SET(MINIBAR);
|
||||
break;
|
||||
case 'a':
|
||||
SET(AT_BLANKS);
|
||||
break;
|
||||
|
@ -2055,11 +2052,14 @@ int main(int argc, char **argv)
|
|||
SET(SUSPENDABLE);
|
||||
break;
|
||||
#ifndef NANO_TINY
|
||||
case '^':
|
||||
SET(MARK_MATCH);
|
||||
break;
|
||||
case '%':
|
||||
SET(STATEFLAGS);
|
||||
break;
|
||||
case '^':
|
||||
SET(MARK_MATCH);
|
||||
case '_':
|
||||
SET(MINIBAR);
|
||||
break;
|
||||
#endif
|
||||
#ifdef HAVE_LIBMAGIC
|
||||
|
|
Loading…
Reference in New Issue