1
1

Mon May 18 22:24:09 1998 Norbert Warmuth <k3190@fh-sw.de>

* lib/mc.ini.in: s/reges/regex/

* main.c (process_args): return void, the return value was only
used once but wrong (-h displayed help twice).
(handle_args): -h: don't display help twice
(print_usage): Don't print program name and version, that's
already done by version(0).

* menu.c (menubar_paint_idx): Highlight Hotkeys also on slow
terminals (hotkeys were not displayed at all).
Этот коммит содержится в:
Norbert Warmuth 1998-05-19 08:58:41 +00:00
родитель 0dad671321
Коммит 321bc71bab
3 изменённых файлов: 20 добавлений и 14 удалений

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

@ -1,3 +1,15 @@
Mon May 18 22:24:09 1998 Norbert Warmuth <k3190@fh-sw.de>
* lib/mc.ini.in: s/reges/regex/
* main.c (process_args): return void, the return value was only
used once but wrong (-h displayed help twice).
(handle_args): -h: don't display help twice
(print_usage): Don't print program name and version, that's
already done by version(0).
* menu.c (menubar_paint_idx): Highlight Hotkeys also on slow
terminals (hotkeys were not displayed at all).
1998-05-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
* menu.c (menubar_drop_compute): Check for inrange items.

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

@ -2237,7 +2237,7 @@ do_nc (void)
static void
version (int verbose)
{
fprintf (stderr, "Midnight Commander %s\n", VERSION);
fprintf (stderr, "The Midnight Commander %s\n", VERSION);
if (!verbose)
return;
@ -2488,7 +2488,7 @@ print_usage (void)
{
version (0);
fprintf (stderr,
"The Midnight Commander " VERSION "\nUsage is:\n\n"
"Usage is:\n\n"
"mc [flags] [this_dir] [other_panel_dir]\n\n"
#if defined(HAVE_SLANG) && !defined(OS2_NT)
"-a, --stickchars Force use of +, -, | for line drawing.\n"
@ -2572,7 +2572,7 @@ enum {
NOWIN_KEY = -2
};
static int
static void
process_args (int c, char *option_arg)
{
switch (c) {
@ -2649,9 +2649,7 @@ process_args (int c, char *option_arg)
print_usage ();
finish_program = 1;
#endif
return 1;
}
return 0;
}
#ifdef PORT_WANTS_ARGP
@ -2841,8 +2839,7 @@ handle_args (int argc, char *argv [])
while ((c = poptGetNextOpt (optCon)) > 0) {
option_arg = poptGetOptArg(optCon);
if (process_args (c, option_arg) == 1)
process_args ('h', 0);
process_args (c, option_arg);
}
if (c < -1){

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

@ -107,13 +107,10 @@ static void menubar_paint_idx (WMenu *menubar, int idx, int color)
{
++text;
menu->entries [idx].hot_key = tolower(*text);
if (!slow_terminal)
{
attrset (color == MENU_SELECTED_COLOR ?
MENU_HOTSEL_COLOR : MENU_HOT_COLOR);
addch(*text);
attrset(color);
}
attrset (color == MENU_SELECTED_COLOR ?
MENU_HOTSEL_COLOR : MENU_HOT_COLOR);
addch(*text);
attrset(color);
continue;
}
addch(*text);