1
1

* screen.c (select_item): Don't show the file selection if the

panel is inactive.
(chdir_other_panel): Select the same file on the other panel.
Этот коммит содержится в:
Pavel Roskin 2002-11-11 09:12:53 +00:00
родитель ba466b74d6
Коммит 39f877f0bb
2 изменённых файлов: 21 добавлений и 9 удалений

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

@ -1,5 +1,9 @@
2002-11-11 Pavel Roskin <proski@gnu.org>
* screen.c (select_item): Don't show the file selection if the
panel is inactive.
(chdir_other_panel): Select the same file on the other panel.
* file.c (panel_operate): Warning fix.
* cmd.c (compare_dirs_cmd): Likewise.
* man2hlp.c: Warning fixes. size_t can be unsigned.

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

@ -1506,8 +1506,11 @@ select_item (WPanel *panel)
if (repaint)
paint_panel (panel);
else
repaint_file (panel, panel->selected, 1, 2*selection (panel)->f.marked+1, 0);
else {
if (panel->active)
repaint_file (panel, panel->selected, 1,
2 * selection (panel)->f.marked + 1, 0);
}
display_mini_info (panel);
@ -1992,6 +1995,11 @@ chdir_other_panel (WPanel *panel)
change_panel ();
do_cd (panel->cwd, cd_exact);
change_panel ();
/* try to select current filename on the other panel */
if (!panel->is_panelized) {
try_to_select (other_panel, selection (panel)->fname);
}
}
static void