Commit c3724881 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

treat search_last_line as a boolean everywhere, and remove some unneeded

trailing spaces


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1768 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 9 additions and 9 deletions
+9 -9
......@@ -318,7 +318,7 @@ int findnextstr(int can_display_wrap, int wholeword, const filestruct
/* Original start line reached. */
if (fileptr == begin)
search_last_line = 1;
search_last_line = TRUE;
rev_start = fileptr->data;
#ifndef NANO_SMALL
if (ISSET(REVERSE_SEARCH))
......@@ -389,7 +389,7 @@ int do_search(void)
update_history(&search_history, answer);
#endif
search_last_line = 0;
search_last_line = FALSE;
didfind = findnextstr(TRUE, FALSE, current, current_x, answer, FALSE);
edit_refresh();
placewewant = xplustabs();
......@@ -440,7 +440,7 @@ int do_research(void)
return -1;
#endif
search_last_line = 0;
search_last_line = FALSE;
didfind = findnextstr(TRUE, FALSE, current, current_x, last_search, FALSE);
edit_refresh();
placewewant = xplustabs();
......@@ -926,7 +926,7 @@ int do_find_bracket(void)
/* We constructed regexp_pat to be a valid expression. */
assert(regexp_compiled);
search_last_line = 0;
search_last_line = FALSE;
while (TRUE) {
if (findnextstr(FALSE, FALSE, current, current_x, regexp_pat, FALSE) != 0) {
/* Found identical bracket. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment