* view.c (normal_search): Replaced with normal_search_cmd().

This commit is contained in:
Roland Illig 2005-06-28 12:25:34 +00:00
parent bb8946d3e2
commit 6fdbaf90a0
2 changed files with 4 additions and 9 deletions

View File

@ -1,6 +1,7 @@
2005-06-28 Roland Illig <roland.illig@gmx.de>
* view.c: Simplified error handling when loading files.
* view.c (normal_search): Replaced with normal_search_cmd().
2005-06-27 Roland Illig <roland.illig@gmx.de>

View File

@ -2627,7 +2627,7 @@ regexp_search_cmd (WView *view)
/* Both views */
static void
normal_search (WView *view)
normal_search_cmd (WView *view)
{
static char *old;
char *exp = old ? old : str_unconst ("");
@ -2692,12 +2692,6 @@ normal_search (WView *view)
view->last_search = do_normal_search;
}
static void
normal_search_cmd (WView *view)
{
normal_search (view);
}
static void
change_viewer (WView *view)
{
@ -2830,7 +2824,7 @@ continue_search (WView *view)
(*view->last_search) (view, view->search_exp);
} else {
/* if not... then ask for an expression */
normal_search (view);
normal_search_cmd (view);
}
}
@ -2914,7 +2908,7 @@ view_handle_key (WView *view, int c)
if (view->last_search) {
(*view->last_search) (view, view->search_exp);
} else {
normal_search (view);
normal_search_cmd (view);
}
return MSG_HANDLED;