tweaks: remove some unneeded braces, and reshuffle for more symmetry
parent
5764619655
commit
02d3a2c0fb
18
src/search.c
18
src/search.c
|
@ -144,24 +144,24 @@ void search_init(bool replacing, bool keep_the_answer)
|
||||||
|
|
||||||
/* If we're here, one of the five toggles was pressed, or
|
/* If we're here, one of the five toggles was pressed, or
|
||||||
* a shortcut was executed. */
|
* a shortcut was executed. */
|
||||||
if (func == case_sens_void) {
|
if (func == case_sens_void)
|
||||||
TOGGLE(CASE_SENSITIVE);
|
TOGGLE(CASE_SENSITIVE);
|
||||||
} else if (func == backwards_void) {
|
else if (func == backwards_void)
|
||||||
TOGGLE(BACKWARDS_SEARCH);
|
TOGGLE(BACKWARDS_SEARCH);
|
||||||
} else if (func == regexp_void) {
|
else if (func == regexp_void)
|
||||||
TOGGLE(USE_REGEXP);
|
TOGGLE(USE_REGEXP);
|
||||||
} else if (func == flip_replace) {
|
else if (func == flip_replace) {
|
||||||
if (ISSET(VIEW_MODE)) {
|
if (ISSET(VIEW_MODE)) {
|
||||||
print_view_warning();
|
print_view_warning();
|
||||||
napms(600);
|
napms(600);
|
||||||
} else
|
} else
|
||||||
replacing = !replacing;
|
replacing = !replacing;
|
||||||
} else {
|
} else if (func == flip_goto) {
|
||||||
if (func == flip_goto)
|
do_gotolinecolumn(openfile->current->lineno,
|
||||||
do_gotolinecolumn(openfile->current->lineno,
|
openfile->placewewant + 1, TRUE, TRUE);
|
||||||
openfile->placewewant + 1, TRUE, TRUE);
|
break;
|
||||||
|
} else
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tidy_up_after_search();
|
tidy_up_after_search();
|
||||||
|
|
Loading…
Reference in New Issue