- Blank lines are not kept when cutting with -k (discovered by Rocco)
(61) [FIXED].
- Nano will not suspend properly inside of mutt (62) [FIXED].
+- When switching from Pico mode to normal mode, the previous search is
+ not displayed until cancelling the search (63) [FIXED].
+- If you change search options but don't change the search string in
+ normal mode, hitting enter causes the search/replace to abort (64)
+ (Jordi Mallach) [FIXED].
+
** Open BUGS **
$Id$
CVS code -
+- General
+ - Added BUGS #63 & 64. Fixes in search_init() and nanogetstr(),
+ new flag CLEAR_BACKUPSTRING because there's no easy way to
+ clear the backupstring without making it global (messy), so we
+ use a flag instead (just as messy?)
- files.c:
do_browser()
- More Picoish keystrokes for the browser, ^P, ^N, etc, for up,
-dnl aclocal.m4 generated automatically by aclocal 1.4
+dnl aclocal.m4 generated automatically by aclocal 1.4-p4
dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
-/* config.h.in. Generated automatically from configure.in by autoheader. */
+/* config.h.in. Generated automatically from configure.in by autoheader 2.13. */
/* Define if using alloca.c. */
#undef C_ALLOCA
switch (toggles[which].val) {
case TOGGLE_PICOMODE_KEY:
shortcut_init(0);
+ SET(CLEAR_BACKUPSTRING);
display_main_list();
break;
case TOGGLE_SUSPEND_KEY:
#define TEMP_OPT (1<<16)
#define CUT_TO_END (1<<17)
#define DISABLE_CURPOS (1<<18)
+/* 19, 20 in nano-1.1 */
+#define CLEAR_BACKUPSTRING (1<<21)
+
/* Control key sequences, changing these would be very very bad */
buf = nmalloc(strlen(last_search) + 5);
buf[0] = 0;
+
+ /* Clear the backupstring if we've changed from Pico mode to regular
+ mode */
+ if (ISSET(CLEAR_BACKUPSTRING)) {
+ free(backupstring);
+ backupstring = NULL;
+ }
+
/* Okay, fun time. backupstring is our holder for what is being
returned from the statusq call. Using answer for this would be tricky.
Here, if we're using PICO_MODE, we only want nano to put the
answer = mallocstrcpy(answer, inputbuf);
free(inputbuf);
- /* Now that the text is editable instead of bracketed, we have to
- check for answer == def, instead of answer == "" */
- if (((ISSET(PICO_MODE)) && !strcmp(answer, "")) ||
- ((!ISSET(PICO_MODE)) && !strcmp(answer, def)))
+ /* In pico mode, just check for a blank answer here */
+ if (((ISSET(PICO_MODE)) && !strcmp(answer, "")))
return -2;
else
return 0;