1998-07-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
* main.c (translated_mc_chdir): Quick hack to make the old
Этот коммит содержится в:
родитель
0768855871
Коммит
7ebee99cd5
@ -1,3 +1,12 @@
|
|||||||
|
1998-07-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||||
|
|
||||||
|
* main.c (translated_mc_chdir): Quick hack to make the old
|
||||||
|
url-like pathnames to be used on the command line.
|
||||||
|
|
||||||
|
1998-06-22 T.E.Dickey <dickey@clark.net>
|
||||||
|
|
||||||
|
* keyxdef.c: Fix for compiling with ncurses.
|
||||||
|
|
||||||
Fri Jul 24 00:44:37 1998 Tom Tromey <tromey@cygnus.com>
|
Fri Jul 24 00:44:37 1998 Tom Tromey <tromey@cygnus.com>
|
||||||
|
|
||||||
* mc-local.m4 (AC_STRUCT_LINGER): Moved into macros/linger.m4.
|
* mc-local.m4 (AC_STRUCT_LINGER): Moved into macros/linger.m4.
|
||||||
|
20
src/main.c
20
src/main.c
@ -1453,6 +1453,20 @@ toggle_align_extensions (void)
|
|||||||
align_extensions = !align_extensions;
|
align_extensions = !align_extensions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Just a hack for allowing url-like pathnames to be accepted from the
|
||||||
|
* command line.
|
||||||
|
*/
|
||||||
|
static void
|
||||||
|
translated_mc_chdir (char *dir)
|
||||||
|
{
|
||||||
|
char *newdir;
|
||||||
|
|
||||||
|
newdir = translate_url_to_new_syntax (dir);
|
||||||
|
mc_chdir (newdir);
|
||||||
|
free (newdir);
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef PORT_HAS_CREATE_PANELS
|
#ifndef PORT_HAS_CREATE_PANELS
|
||||||
void
|
void
|
||||||
create_panels (void)
|
create_panels (void)
|
||||||
@ -1485,15 +1499,15 @@ create_panels (void)
|
|||||||
*/
|
*/
|
||||||
mc_get_current_wd (original_dir, sizeof (original_dir)-2);
|
mc_get_current_wd (original_dir, sizeof (original_dir)-2);
|
||||||
}
|
}
|
||||||
mc_chdir (this_dir);
|
translated_mc_chdir (this_dir);
|
||||||
}
|
}
|
||||||
set_display_type (current_index, current_mode);
|
set_display_type (current_index, current_mode);
|
||||||
|
|
||||||
/* The other panel */
|
/* The other panel */
|
||||||
if (other_dir){
|
if (other_dir){
|
||||||
if (original_dir [0])
|
if (original_dir [0])
|
||||||
mc_chdir (original_dir);
|
translated_mc_chdir (original_dir);
|
||||||
mc_chdir (other_dir);
|
translated_mc_chdir (other_dir);
|
||||||
}
|
}
|
||||||
set_display_type (other_index, other_mode);
|
set_display_type (other_index, other_mode);
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user