patch-lib_tty_key_c 638 B

123456789101112131415161718
  1. --- mc-4.8.11.orig/lib/tty/key.c 2013-11-29 19:27:07.000000000 +0100
  2. +++ mc-4.8.11/lib/tty/key.c 2014-02-11 20:02:34.000000000 +0100
  3. @@ -1946,6 +1946,7 @@ int
  4. tty_get_event (struct Gpm_Event *event, gboolean redo_event, gboolean block)
  5. {
  6. int c;
  7. + static int flag = 0; /* Return value from select */
  8. #ifdef HAVE_LIBGPM
  9. static struct Gpm_Event ev; /* Mouse event */
  10. #endif
  11. @@ -1978,7 +1979,6 @@ tty_get_event (struct Gpm_Event *event,
  12. while (pending_keys == NULL)
  13. {
  14. int nfd;
  15. - static int flag = 0; /* Return value from select */
  16. fd_set select_set;
  17. FD_ZERO (&select_set);