version 1.12, 2015/11/09 14:25:32 |
version 1.13, 2015/11/09 16:39:13 |
|
|
undo_search(void) |
undo_search(void) |
{ |
{ |
if (!prev_pattern(&search_info)) { |
if (!prev_pattern(&search_info)) { |
error("No previous regular expression", NULL_PARG); |
error("No previous regular expression", NULL); |
return; |
return; |
} |
} |
hide_hilite = !hide_hilite; |
hide_hilite = !hide_hilite; |
|
|
*/ |
*/ |
search_type |= SRCH_AFTER_TARGET; |
search_type |= SRCH_AFTER_TARGET; |
if (!prev_pattern(&search_info) && !hist_pattern(search_type)) { |
if (!prev_pattern(&search_info) && !hist_pattern(search_type)) { |
error("No previous regular expression", NULL_PARG); |
error("No previous regular expression", NULL); |
return (-1); |
return (-1); |
} |
} |
if ((search_type & SRCH_NO_REGEX) != |
if ((search_type & SRCH_NO_REGEX) != |
(search_info.search_type & SRCH_NO_REGEX)) { |
(search_info.search_type & SRCH_NO_REGEX)) { |
error("Please re-enter search pattern", NULL_PARG); |
error("Please re-enter search pattern", NULL); |
return (-1); |
return (-1); |
} |
} |
if (hilite_search == OPT_ON) { |
if (hilite_search == OPT_ON) { |
|
|
if (search_type & SRCH_PAST_EOF) |
if (search_type & SRCH_PAST_EOF) |
return (n); |
return (n); |
/* repaint(); -- why was this here? */ |
/* repaint(); -- why was this here? */ |
error("Nothing to search", NULL_PARG); |
error("Nothing to search", NULL); |
return (-1); |
return (-1); |
} |
} |
|
|