- Readded DISABLE_CURPOS because in certain instances (like
all the "Search Wrapper" lines) the cursor position will
be different yet we don't want the cursor position displayed.
+ - Take control-space out of -tiny build, unneeded.
- cut.c:
cut_marked_segment()
- Add magic line when cutting a selection including filebot
{
filestruct *fileptr;
char *searchstr, *rev_start = NULL, *found = NULL;
- int current_x_find;
+ int current_x_find = 0;
fileptr = current;
return NULL;
}
#endif
- } else { /* reverse search */
+ }
+#ifndef NANO_SMALL
+ else { /* reverse search */
current_x_find = current_x - 1;
}
#endif
}
+#endif /* NANO_SMALL */
/* Set globals now that we are sure we found something */
current = fileptr;
}
return 0;
}
-#endif /* NANO_SMALL */
/* This is now mutt's version (called mutt_stristr) because it doesn't
use memory allocation to do a simple search (yuck). */
}
return NULL;
}
+#endif /* NANO_SMALL */
char *strstrwrapper(char *haystack, char *needle, char *rev_start)
{
return 0;
}
#endif
- if (ISSET(CASE_SENSITIVE)) {
#ifndef NANO_SMALL
+ if (ISSET(CASE_SENSITIVE)) {
if (ISSET(REVERSE_SEARCH))
return revstrstr(haystack, needle, rev_start);
else
-#endif
return strstr(haystack,needle);
} else {
-#ifndef NANO_SMALL
if (ISSET(REVERSE_SEARCH))
return revstrcasestr(haystack, needle, rev_start);
else
#endif
return strcasestr(haystack, needle);
+#ifndef NANO_SMALL
}
+#endif
}
/* Thanks BG, many ppl have been asking for this... */