screen.c: make cd .. from extfs file highlight it
Этот коммит содержится в:
родитель
340fe60801
Коммит
bca3821dac
@ -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>
|
Tue Sep 8 13:10:32 1998 Pavel Roskin <pavel_roskin@geocities.com>
|
||||||
|
|
||||||
* autogen.sh: Don't destroy aclocal.m4 if "macros" directory
|
* autogen.sh: Don't destroy aclocal.m4 if "macros" directory
|
||||||
|
12
src/screen.c
12
src/screen.c
@ -814,6 +814,9 @@ paint_panel (WPanel *panel)
|
|||||||
mini_info_separator (panel);
|
mini_info_separator (panel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This is used to select xyzzy after you asked for cd .. in xyzzy/ subdir.
|
||||||
|
*/
|
||||||
void
|
void
|
||||||
Xtry_to_select (WPanel *panel, char *name)
|
Xtry_to_select (WPanel *panel, char *name)
|
||||||
{
|
{
|
||||||
@ -839,7 +842,14 @@ Xtry_to_select (WPanel *panel, char *name)
|
|||||||
|
|
||||||
/* Search that subdirectory, if found select it */
|
/* Search that subdirectory, if found select it */
|
||||||
for (i = 0; i < panel->count; i++){
|
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;
|
continue;
|
||||||
|
|
||||||
if (i != panel->selected){
|
if (i != panel->selected){
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user