Get rid of unneeded call to usage() in main() when calling a flag for a function that hasn't been compiled in (Rocco)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@482 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
3693944492
commit
ae4318dab0
|
@ -37,6 +37,8 @@ General
|
||||||
main()
|
main()
|
||||||
- Alternate speller option no longer valid if DISABLE_SPELLER is
|
- Alternate speller option no longer valid if DISABLE_SPELLER is
|
||||||
active. (Rocco)
|
active. (Rocco)
|
||||||
|
- Removed direct calls to usage() (#else) for -k (cut) or -s (speller)
|
||||||
|
options when these have been disabled. (Rocco)
|
||||||
- Initialized kbinput to get around stupid compiler warning.
|
- Initialized kbinput to get around stupid compiler warning.
|
||||||
nano_small_msg()
|
nano_small_msg()
|
||||||
- This function has been removed. All references now call
|
- This function has been removed. All references now call
|
||||||
|
|
8
nano.c
8
nano.c
|
@ -2175,10 +2175,6 @@ int main(int argc, char *argv[])
|
||||||
case 'k':
|
case 'k':
|
||||||
SET(CUT_TO_END);
|
SET(CUT_TO_END);
|
||||||
break;
|
break;
|
||||||
#else
|
|
||||||
case 'k':
|
|
||||||
usage(); /* Oops! You dont really have that option */
|
|
||||||
finish(1);
|
|
||||||
#endif
|
#endif
|
||||||
case 'l':
|
case 'l':
|
||||||
UNSET(FOLLOW_SYMLINKS);
|
UNSET(FOLLOW_SYMLINKS);
|
||||||
|
@ -2201,10 +2197,6 @@ int main(int argc, char *argv[])
|
||||||
alt_speller = nmalloc(strlen(optarg) + 1);
|
alt_speller = nmalloc(strlen(optarg) + 1);
|
||||||
strcpy(alt_speller, optarg);
|
strcpy(alt_speller, optarg);
|
||||||
break;
|
break;
|
||||||
#else
|
|
||||||
case 's':
|
|
||||||
usage(); /* Oops! You dont really have that option */
|
|
||||||
finish(1);
|
|
||||||
#endif
|
#endif
|
||||||
case 't':
|
case 't':
|
||||||
SET(TEMP_OPT);
|
SET(TEMP_OPT);
|
||||||
|
|
Loading…
Reference in New Issue