1
1

screen.c: make cd .. from extfs file highlight it

Этот коммит содержится в:
Pavel Machek 1998-09-11 13:29:43 +00:00
родитель 340fe60801
Коммит bca3821dac
2 изменённых файлов: 16 добавлений и 2 удалений

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

@ -1,3 +1,7 @@
Fri Sep 11 15:27:59 1998 Pavel Machek <pavel@ucw.cz>
* screen.c: make cd .. from extfs file highlight it
Tue Sep 8 13:10:32 1998 Pavel Roskin <pavel_roskin@geocities.com>
* autogen.sh: Don't destroy aclocal.m4 if "macros" directory

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

@ -814,6 +814,9 @@ paint_panel (WPanel *panel)
mini_info_separator (panel);
}
/*
* This is used to select xyzzy after you asked for cd .. in xyzzy/ subdir.
*/
void
Xtry_to_select (WPanel *panel, char *name)
{
@ -836,10 +839,17 @@ Xtry_to_select (WPanel *panel, char *name)
}
if (subdir < name)
subdir = name;
/* Search that subdirectory, if found select it */
for (i = 0; i < panel->count; i++){
if (strcmp (subdir, panel->dir.list [i].fname))
char c, *s = panel->dir.list [i].fname;
if (strncmp (subdir, s, strlen(s)))
continue;
c = subdir[ strlen(s) ];
/* This ugly hack is for returning from extfs archive: now
that archive will be highlighted when you cd .. from it. */
if ((c!=0) && (c!='#'))
continue;
if (i != panel->selected){