and nano.c:do_int_spell_fix() (Rocco Corsi).
- Add Meta-A as alternate keyystroke for ^^ for people with
non-US keyboards.
+ - New configure option --disable-wrapping-as-root. Added
+ because the 1.0 series doesn't really allow wrapping disabled
+ without a flag and debian's installer can't handle that.
- global.c:
shorcut_init()
- Replace hard coded ALT_G and ALT_H values in the replace
/* Define this to disable any and all text wrapping */
#undef DISABLE_WRAPPING
+/* Define this to disable wrapping as root by default */
+#undef DISABLE_ROOTWRAP
+
AC_DEFINE(DISABLE_WRAPPING)
fi])
+AC_ARG_ENABLE(wrapping-as-root,
+[ --disable-wrapping-as-root Disables wrapping of text as root by default],
+ [if test x$enableval != xyes; then
+ AC_DEFINE(DISABLE_ROOTWRAP)
+ fi])
+
AC_MSG_CHECKING([whether to use slang])
CURSES_LIB_NAME=""
AC_ARG_WITH(slang,
#ifdef DISABLE_WRAPPING
printf(" --disable-wrapping");
#endif
+#ifdef DISABLE_ROOTWRAP
+ printf(" --disable-wrapping-as-root");
+#endif
#ifdef USE_SLANG
printf(" --with-slang");
#endif
filename = mallocstrcpy(filename, argv[optind]);
}
+#ifdef DISABLE_ROOTWRAP
+ if (geteuid() == 0)
+ SET(NO_WRAP);
+#endif
/* First back up the old settings so they can be restored, duh */
tcgetattr(0, &oldterm);