- 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 **
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?)
- nano.texi:
-corrected the Mouse Toggle section, noticed by Daniel Bonniot.
switch (toggles[which].val) {
case TOGGLE_PICOMODE_KEY:
shortcut_init(0);
+ SET(CLEAR_BACKUPSTRING);
display_main_list();
break;
case TOGGLE_SUSPEND_KEY:
#define DISABLE_CURPOS (1<<18)
#define REVERSE_SEARCH (1<<19)
#define MULTIBUFFER (1<<20)
+#define CLEAR_BACKUPSTRING (1<<21)
/* Control key sequences, changing these would be very very bad */
`Cut To End Toggle (Meta-K)'
toggles the -k (-cut) command line flag.
-`Cut To End Toggle (Meta-M)'
+`Mouse Toggle (Meta-M)'
toggles the -m (-mouse) command line flag.
`Pico Mode Toggle (Meta-P)'
Node: Shortcut Lists\7f6948
Node: Online Help\7f7341
Node: Feature Toggles\7f7717
-Node: The File Browser\7f8860
-Node: Pico Compatibility\7f9569
-Node: Building and Configure Options\7f11611
+Node: The File Browser\7f8855
+Node: Pico Compatibility\7f9564
+Node: Building and Configure Options\7f11606
\1f
End Tag Table
buf = charalloc(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
case NANO_OTHERSEARCH_KEY:
backupstring = mallocstrcpy(backupstring, answer);
return -2; /* Call the opposite search function */
-/*
- } else if (i == NANO_REVERSESEARCH_KEY) {
- free(backupstring);
- backupstring = NULL;
- backupstring = mallocstrcpy(backupstring, answer);
-
- TOGGLE(REVERSE_SEARCH);
-
- return 1;
- } else if (i == NANO_FROMSEARCHTOGOTO_KEY) {
-*/
case NANO_FROMSEARCHTOGOTO_KEY:
free(backupstring);
backupstring = NULL;
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;