by DLR.
- Call do_gotopos from do_alt_spell() to keep position
consistent when invoking alt speller (DLR).
+ - 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.
- cut.c:
cut_marked_segment()
- Add magic line when cutting a selection including filebot
bracketed, free-standing modifiers that do not imply a grammar,
and the (to replace) string separately. Hopefully this resolves
the i18n problems that this provoked.
+ findnextstr()
+ - Various fixes that need testing (Ken Tyler).
- winio.c:
- Add David Lawrence Ramsey to credits.
bottombars()
if (!ISSET(REVERSE_SEARCH)) { /* forward search */
current_x_find = current_x + 1;
-
- /* Are we now back to the line where the search started) */
+#if 0
+ /* Are we now back to the place where the search started) */
if ((fileptr == begin) && (beginx > current_x_find))
search_last_line = 1;
-
+#endif
/* Make sure we haven't passed the end of the string */
if (strlen(fileptr->data) < current_x_find)
current_x_find--;
fileptr = fileptr->next;
- if (!past_editbuff && (fileptr == editbot))
+ if (fileptr == editbot)
past_editbuff = 1;
/* EOF reached ?, wrap around once */
return NULL;
fileptr = fileage;
past_editbuff = 1;
- if (!quiet)
+ if (!quiet) {
statusbar(_("Search Wrapped"));
+ SET(DISABLE_CURPOS);
+ }
}
/* Original start line reached */
/* We found an instance */
current_x_find = found - fileptr->data;
-
+#if 0
/* Ensure we haven't wrapped around again! */
if ((search_last_line) && (current_x_find >= beginx)) {
if (!quiet)
not_found_msg(needle);
return NULL;
}
-
+#endif
} else { /* reverse search */
current_x_find = current_x - 1;
- /* Are we now back to the line where the search started) */
+ /* Are we now back to the place where the search started) */
if ((fileptr == begin) && (current_x_find > beginx))
search_last_line = 1;
fileptr = fileptr->prev;
-/* ? */ if (!past_editbuff && (fileptr == edittop->prev))
+ if (fileptr == edittop->prev)
past_editbuff = 1;
/* SOF reached ?, wrap around once */
return NULL;
fileptr = filebot;
past_editbuff = 1;
- if (!quiet)
+ if (!quiet) {
statusbar(_("Search Wrapped"));
+ SET(DISABLE_CURPOS);
+ }
}
/* Original start line reached */
/* We found an instance */
current_x_find = found - fileptr->data;
-
+#if 0
/* Ensure we haven't wrapped around again! */
if ((search_last_line) && (current_x_find < beginx)) {
if (!quiet)
not_found_msg(needle);
return NULL;
}
+#endif
}
/* Set globals now that we are sure we found something */