- Change various const char *s to char *s because Irix curses
waddnstr() complains about const char's, I imagine this is a
common System V curses issue.
+ - Remove do_preserve_msg, as using -p still gives Pico-style
+ string behavior, so an annoying message every invocation is
+ probably unneeded (all cheer).
- files.c:
cwd_tab_completion()
- Memory leak fix (David Benbennick).
}
#endif
-void do_preserve_msg(void)
-{
- fprintf(stderr, _("\nThe -p flag now invokes the Pico \"preserve\" flag.\n"
- "The Pico compatibility flag has been removed as nano\n"
- "now fully Pico compatible. Please see the nano FAQ\n"
- "for more info on this change...\n\n"
- "Press return to continue\n"));
- while (getchar() != '\n');
-}
-
#ifndef NANO_SMALL
static int pid; /* This is the PID of the newly forked process
* below. It must be global since the signal
int keyhandled = 0; /* Have we handled the keystroke yet? */
int kbinput = -1; /* Input from keyboard */
-#ifdef HAVE_GETOPT_LONG
- int preserveopt = 0; /* Did the cmdline include --preserve? */
-#endif
#ifndef NANO_SMALL
const toggle *t;
#endif
textdomain(PACKAGE);
#endif
-#ifdef HAVE_GETOPT_LONG
- {
- /* Check for the --preserve flag, and report error if people are
- still using --pico. */
- int i;
- for (i = 1; i < argc; i++) {
- if (!strcmp(argv[i], "--preserve"))
- preserveopt = 1;
- else if (!strcmp(argv[i], "--pico"))
- do_preserve_msg();
- }
- }
-#endif
-
#if !defined(ENABLE_NANORC) && defined(DISABLE_ROOTWRAP) && !defined(DISABLE_WRAPPING)
/* if we don't have rcfile support, we're root, and
--disable-wrapping-as-root is used, turn wrapping off */
case 'p':
SET(PRESERVE);
#ifdef HAVE_GETOPT_LONG
- if (!preserveopt)
- do_preserve_msg();
#endif
break;
#ifndef DISABLE_WRAPJUSTIFY
#if defined(DISABLE_JUSTIFY) || defined(DISABLE_SPELLER) || defined(DISABLE_HELP) || defined(NANO_SMALL)
void nano_disabled_msg(void);
#endif
-void do_preserve_msg(void);
#ifndef NANO_SMALL
RETSIGTYPE cancel_fork(int signal);
int open_pipe(const char *command);