diff --git a/ChangeLog b/ChangeLog index 43c69b62207fe3c59500f851cdb99eb74d69d3a4..f01d0b81d1f8f0dbd6c990a31371fae460f69c75 100644 --- a/ChangeLog +++ b/ChangeLog @@ -233,6 +233,10 @@ CVS code - - Add missing N_() around one message, so that it isn't erroneously translated twice. (DLR) - Remove inaccurate default listed for -Q/--quotestr. (DLR) + version() + - Add --enable-utf8 to the displayed compilation options, put + the options in alphabetical order, and handle --enable-tiny + the same way as all the other options. (DLR) do_tab() - Remove unneeded variable kbinput. (DLR) do_int_spell_fix() diff --git a/src/nano.c b/src/nano.c index e3b67101bba08753a9b2c27a4628e7dbc9c6a305..c6a8eb60eefddf1d0f0e2c9df5a634fa9d689499 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1117,18 +1117,6 @@ void version(void) _(" Email: nano@nano-editor.org Web: http://www.nano-editor.org/")); printf(_("\n Compiled options:")); -#ifndef ENABLE_NLS - printf(" --disable-nls"); -#endif -#ifdef DEBUG - printf(" --enable-debug"); -#endif -#ifdef NANO_EXTRA - printf(" --enable-extra"); -#endif -#ifdef NANO_SMALL - printf(" --enable-tiny"); -#else #ifdef DISABLE_BROWSER printf(" --disable-browser"); #endif @@ -1141,6 +1129,9 @@ void version(void) #ifdef DISABLE_MOUSE printf(" --disable-mouse"); #endif +#ifndef ENABLE_NLS + printf(" --disable-nls"); +#endif #ifdef DISABLE_OPERATINGDIR printf(" --disable-operatingdir"); #endif @@ -1150,7 +1141,6 @@ void version(void) #ifdef DISABLE_TABCOMP printf(" --disable-tabcomp"); #endif -#endif /* NANO_SMALL */ #ifdef DISABLE_WRAPPING printf(" --disable-wrapping"); #endif @@ -1160,12 +1150,24 @@ void version(void) #ifdef ENABLE_COLOR printf(" --enable-color"); #endif +#ifdef DEBUG + printf(" --enable-debug"); +#endif +#ifdef NANO_EXTRA + printf(" --enable-extra"); +#endif #ifdef ENABLE_MULTIBUFFER printf(" --enable-multibuffer"); #endif #ifdef ENABLE_NANORC printf(" --enable-nanorc"); #endif +#ifdef NANO_SMALL + printf(" --enable-tiny"); +#endif +#ifdef NANO_WIDE + printf(" --enable-utf8"); +#endif #ifdef USE_SLANG printf(" --with-slang"); #endif