curses.h, which breaks compilation there. Changes to
do_page_up(), do_page_down(), do_up(), do_down(), nano.h, and
edit_scroll(). (DLR, found by Daniel Richard G.)
+ - Rename the DISABLE_ROOTWRAP #define to DISABLE_ROOTWRAPPING.
+ (DLR)
- browser.c:
do_browser()
- Refactor the mouse support, modeling it after do_mouse() for
AC_ARG_ENABLE(wrapping-as-root,
[ --disable-wrapping-as-root Disable wrapping of text as root by default],
[if test x$enableval != xyes; then
- AC_DEFINE(DISABLE_ROOTWRAP, 1, [Define this to disable wrapping as root by default.])
+ AC_DEFINE(DISABLE_ROOTWRAPPING, 1, [Define this to disable wrapping as root by default.])
fi])
AC_ARG_ENABLE(color,
#ifdef DISABLE_WRAPPING
printf(" --disable-wrapping");
#endif
-#ifdef DISABLE_ROOTWRAP
+#ifdef DISABLE_ROOTWRAPPING
printf(" --disable-wrapping-as-root");
#endif
#ifdef ENABLE_COLOR
textdomain(PACKAGE);
#endif
-#if !defined(ENABLE_NANORC) && defined(DISABLE_ROOTWRAP)
+#if !defined(ENABLE_NANORC) && defined(DISABLE_ROOTWRAPPING)
/* If we don't have rcfile support, --disable-wrapping-as-root is
* used, and we're root, turn wrapping off. */
if (geteuid() == NANO_ROOT_UID)
tabsize = tabsize_cpy;
flags |= flags_cpy;
}
-#ifdef DISABLE_ROOTWRAP
+#ifdef DISABLE_ROOTWRAPPING
/* If we don't have any rcfiles, --disable-wrapping-as-root is used,
* and we're root, turn wrapping off. */
else if (geteuid() == NANO_ROOT_UID)
#endif
);
-#ifdef DISABLE_ROOTWRAP
+#ifdef DISABLE_ROOTWRAPPING
/* We've already read SYSCONFDIR/nanorc, if it's there. If we're
* root, and --disable-wrapping-as-root is used, turn wrapping off
* now. */