1
1

* cmd.c (view_other_cmd): Don't check use_mouse_p before calling

init_mouse() and shut_mouse(), since those functions decide
themselves what to do.
* layout.c (done_screen): Likewise.
* main.c (setup_mc): Likewise.
* text.c (edition_post_exec): Likewise.
(edition_pre_exec): Likewise.
Этот коммит содержится в:
Pavel Roskin 2001-09-15 21:34:42 +00:00
родитель b54b1e491c
Коммит e65a82ed06
5 изменённых файлов: 14 добавлений и 12 удалений

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

@ -1,5 +1,13 @@
2001-09-15 Pavel Roskin <proski@gnu.org>
* cmd.c (view_other_cmd): Don't check use_mouse_p before calling
init_mouse() and shut_mouse(), since those functions decide
themselves what to do.
* layout.c (done_screen): Likewise.
* main.c (setup_mc): Likewise.
* text.c (edition_post_exec): Likewise.
(edition_pre_exec): Likewise.
* user.h: Fix location of the home editor menu.
Reported by David Martin <dmartina@excite.es>

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

@ -928,8 +928,7 @@ view_other_cmd (void)
" the panels cannot be toggled. "));
message_flag = FALSE;
} else {
if (use_mouse_p)
shut_mouse ();
shut_mouse ();
if (clear_before_exec)
clr_scr ();
if (alternate_plus_minus)
@ -974,8 +973,7 @@ view_other_cmd (void)
reset_prog_mode ();
keypad(stdscr, TRUE);
if (use_mouse_p)
init_mouse ();
init_mouse ();
if (alternate_plus_minus)
application_keypad_mode ();

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

@ -595,8 +595,7 @@ void done_screen ()
clr_scr ();
reset_shell_mode ();
mc_noraw_mode ();
if (use_mouse_p)
shut_mouse ();
shut_mouse ();
keypad (stdscr, FALSE);
}

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

@ -1780,8 +1780,7 @@ static void setup_mc (void)
if (baudrate () < 9600 || slow_terminal){
verbose = 0;
}
if (use_mouse_p)
init_mouse ();
init_mouse ();
midnight_colors [0] = 0;
midnight_colors [1] = REVERSE_COLOR; /* FOCUSC */

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

@ -63,8 +63,7 @@ edition_post_exec (void)
keypad (stdscr, TRUE);
mc_raw_mode ();
channels_up ();
if (use_mouse_p)
init_mouse ();
init_mouse ();
if (alternate_plus_minus)
application_keypad_mode ();
}
@ -80,8 +79,7 @@ edition_pre_exec (void)
}
channels_down ();
if (use_mouse_p)
shut_mouse ();
shut_mouse ();
reset_shell_mode ();
keypad (stdscr, FALSE);