1
1

torben_fj_mode options was moved from [Midnight-Commander] section to [Panels] one.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Этот коммит содержится в:
Andrew Borodin 2010-08-09 10:58:52 +04:00
родитель 5341a6b53f
Коммит f13778d94f
4 изменённых файлов: 10 добавлений и 9 удалений

Просмотреть файл

@ -73,9 +73,6 @@
/* If true, show the mini-info on the panel */
int show_mini_info = 1;
/* If true, use some usability hacks by Torben */
int torben_fj_mode = 0;
/* The hook list for the select file function */
hook_t *select_file_hook = NULL;
@ -1956,9 +1953,10 @@ move_home (WPanel * panel)
{
if (panel->selected == 0)
return;
unselect_item (panel);
if (torben_fj_mode)
if (panels_options.torben_fj_mode)
{
int middle_pos = panel->top_file + (ITEMS (panel) / 2);
@ -1988,8 +1986,10 @@ move_end (WPanel * panel)
{
if (panel->selected == panel->count - 1)
return;
unselect_item (panel);
if (torben_fj_mode)
if (panels_options.torben_fj_mode)
{
int middle_pos = panel->top_file + (ITEMS (panel) / 2);
@ -2870,7 +2870,7 @@ panel_key (WPanel * panel, int key)
if (key == panel_map[i].key)
return panel_execute_cmd (panel, panel_map[i].command);
if (torben_fj_mode && key == ALT ('h'))
if (panels_options.torben_fj_mode && key == ALT ('h'))
{
goto_middle_file (panel);
return MSG_HANDLED;

Просмотреть файл

@ -133,7 +133,6 @@ typedef struct WPanel
extern panel_field_t panel_fields[];
extern int torben_fj_mode;
extern int show_mini_info;
extern hook_t *select_file_hook;

Просмотреть файл

@ -143,7 +143,8 @@ panels_options_t panels_options = {
.mouse_move_pages = TRUE,
.filetype_mode = TRUE,
.permission_mode = FALSE,
.qsearch_mode = QSEARCH_PANEL_CASE
.qsearch_mode = QSEARCH_PANEL_CASE,
.torben_fj_mode = FALSE
};
int easy_patterns = 1;
@ -273,7 +274,6 @@ static const struct
{ "cd_symlinks", &cd_symlinks },
{ "show_all_if_ambiguous", &show_all_if_ambiguous },
{ "max_dirt_limit", &mcview_max_dirt_limit },
{ "torben_fj_mode", &torben_fj_mode },
{ "use_file_to_guess_type", &use_file_to_check_type },
{ "alternate_plus_minus", &alternate_plus_minus },
{ "only_leading_plus_minus", &only_leading_plus_minus },
@ -363,6 +363,7 @@ static const struct
{ "mouse_move_pages", &panels_options.mouse_move_pages },
{ "filetype_mode", &panels_options.filetype_mode },
{ "permission_mode", &panels_options.permission_mode },
{ "torben_fj_mode", &panels_options.torben_fj_mode },
{ NULL, NULL }
};
/* *INDENT-ON* */

Просмотреть файл

@ -48,6 +48,7 @@ typedef struct
gboolean filetype_mode; /* If TRUE then add per file type hilighting */
gboolean permission_mode; /* If TRUE, we use permission hilighting */
qsearch_mode_t qsearch_mode; /* Quick search mode */
gboolean torben_fj_mode; /* If TRUE, use some usability hacks by Torben */
} panels_options_t;
/*** global variables defined in .c file *********************************************************/