mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* view.c (normal_search): Replaced with normal_search_cmd().
This commit is contained in:
parent
bb8946d3e2
commit
6fdbaf90a0
@ -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>
|
||||
|
||||
|
12
src/view.c
12
src/view.c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user